Return layout size in Edittime.js

Discussion and feedback on Construct 2

Post » Thu Dec 22, 2011 11:52 pm

Hi, I paste here my PM to Ashley who, I'm aware, is very busy.

Is there a way to return/access the layout size and/or the project in the Edittime.js.
I would like allow user change the layout size considering some other properties (read at bottom)...

Also, I encounter that I guess is a bug...
Still in edittime.js, in OnPropertyChanged, I compare two properties that make a change in another property...

But, in C2, when I set the property "Screen" to "Low", it doesn't automatically change the "Screen width" value to "320", as it has to do.
I have to input something in the "Screen width" value, and after that, the value change to "320"....


if (this.properties["Screen"] == "Low" && this.properties["Orientation"] == "Vertical")
          {
               this.properties["Screen width"] = 320;
               this.properties["Screen height"] = 480;
          } septeven2011-12-23 00:56:59
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Fri Dec 23, 2011 12:14 am

Sorry, you can't modify the layout size - the SDK is relatively limited at the moment, since we're pushed for time so have only added the bare minimum necessary for the official features. Hopefully we'll expand it in future, but I wouldn't hold your breath, we have a long todo list for the user side of things, let alone the SDK...
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Fri Dec 23, 2011 12:55 am

I understand...
Hopefully it won't be too long ;)

What about the second part, is it a bug ?
B
44
S
12
G
13
Posts: 628
Reputation: 10,471


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 15 guests