mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 05:09:23 +02:00
Refining UI, introduce tween functionality for zooming into planets
This commit is contained in:
parent
e61ba997e5
commit
c585f24e27
3 changed files with 562 additions and 317 deletions
|
@ -20,6 +20,8 @@ Script.include('../utilities/tools/vector.js');
|
||||||
var URL = "https://s3.amazonaws.com/hifi-public/marketplace/hificontent/Scripts/planets/";
|
var URL = "https://s3.amazonaws.com/hifi-public/marketplace/hificontent/Scripts/planets/";
|
||||||
|
|
||||||
SatelliteGame = function() {
|
SatelliteGame = function() {
|
||||||
|
print("initializing satellite game");
|
||||||
|
|
||||||
var MAX_RANGE = 50.0;
|
var MAX_RANGE = 50.0;
|
||||||
var Y_AXIS = {
|
var Y_AXIS = {
|
||||||
x: 0,
|
x: 0,
|
||||||
|
@ -68,7 +70,7 @@ SatelliteGame = function() {
|
||||||
this.clouds = Entities.addEntity({
|
this.clouds = Entities.addEntity({
|
||||||
type: "Model",
|
type: "Model",
|
||||||
shapeType: 'sphere',
|
shapeType: 'sphere',
|
||||||
modelURL: URL + "clouds.fbx?i=2",
|
modelURL: URL + "clouds.fbx",
|
||||||
position: position,
|
position: position,
|
||||||
dimensions: {
|
dimensions: {
|
||||||
x: size + CLOUDS_OFFSET,
|
x: size + CLOUDS_OFFSET,
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1360,7 +1360,7 @@ var CHECK_MARK_COLOR = {
|
||||||
|
|
||||||
this.nextY = this.y + this.getHeight();
|
this.nextY = this.y + this.getHeight();
|
||||||
|
|
||||||
var item = new CollapsablePanelItem(name, this.x, this.nextY, textWidth, rawHeight, panel);
|
var item = new CollapsablePanelItem(name, this.x, this.nextY, textWidth, rawHeight);
|
||||||
item.isSubPanel = true;
|
item.isSubPanel = true;
|
||||||
|
|
||||||
this.nextY += 1.5 * item.height;
|
this.nextY += 1.5 * item.height;
|
||||||
|
|
Loading…
Reference in a new issue