Set size of instances

0 favourites
  • 5 posts
From the Asset Store
A versatile and wide-ranging selection of large to medium-sized creature sounds.
  • Hi,

    as I already told to Ashley, I need to set projects settings in C2, etc... directly from plugins, specially from edittime.js (for interaction with plugins properties)....

    I know, for the moment, that it's not possible to do it but:

    from the edittime.js

    is it possible to set the size of the plugin's object, of the instance ? For the moment, I've only found the way to get width and height but no way to set them.

    Btw, is it possible to set/get the position of the instance in the layout ?

    If it doesn't, I know that you've got an amount of things to do, but please, could you add those needs onto your todolist:

    • set/get layout size
    • set instance size
    • set/get instance position
    • set/get window size

    and in future, a complete interface to modify/acces of all project settings from the edittime (fullscreen mode, webGL on/off, ...)

    It will be REALLY useful.

    Thanks

  • If you look at Alert.as and/or AlertForm.as, it seems that the Alert is trying

    to manage the proportions of the window on its own. It looks at the width of

    the title and the width of the text, and then seems to break the text into

    multiple lines to make the alert look somewhat square, as opposed to stretched

    I wanted to have some more control over this, so I wrote a wrapper function to

    display alerts that padded the title text with spaces until it was long enough

    to create a window wide enough to hold my text with minimal wrapping

  • Zollie08, what are you talking about? :S

    septeven, there are methods to set/get the instance size here:

    http://www.scirra.com/manual/21/the-edit-time

    Are you sure you need so much stuff to be accessed from the edittime? We are really pressed for time and I can't imagine why a plugin would need to change things like the WebGL setting? Also, since the edittime side of plugins is a bit limited right now, have you considered just doing everything on startup at runtime in your plugin? Changing any part of the edittime in a plugin is actually really complicated because it has to fully support the undo system, which can be pretty complicated if your plugin wants to make batch changes. I think I need to better understand what you're trying to do to justify it. Are you sure there are no good workarounds?

  • Ashley

    If you look at the posts from Zollie08, they look like clever spam.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ashley, about WebGL, it was the wrong example. I personally need to access to

    • set/get layout size
    • set/get instance position
    • set/get window size
    • Fullscreen in browser

    As you may know, I'm actually developing a big plugin for mobile device.

    In order to have an intuitive using, e.g. it would be usefull if the layout/window size could be changed from the plugin properties 'screen size' and 'screen orientation'

    For that example, I'm sure the user could input the width and height himself, but that's definitely not the way I think that an user has to use a plugin. Specially here, it has to be automatical to prevent user to have to look for the resolution screen.

    I hope you'll see what I mean, and why I consider this as usefull.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)