SoldjahBoy's Forum Posts

  • Will have to let you know tomorrow when I get up. Since you mention it I think I know what may be causing it. Might be easily fixed.

    I'll let you know.

    Thanks for the super fast updates :D

    ~Sol

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Discovered a bug while using ComboBox plugin...

    Changing layouts causes a debug window error, which stops things from working, such as the layout change itself or even mouse input. It has to do specifically with "getValueSelected"

    I can post my capx if you like, however it should be fairly easy to reproduce in such a way:

    1. Create two layouts

    2. On layout one make an event "mouse is clicked, change to layout2"

    3. On layout 2 create a combobox and make some event that calls the getValueSelected expression.

    4. Test preview

    5. ????

    6. PROFIT!

    ~Sol

  • Thanks for your help guys, again. This problem kind of flopped cross two threads lol.

    I ended up finding this which worked for what I wanted, though it ended up being the wrong thing for me to be doing anyway.

    Someone else may find it useful though.

    I made an iframe on a new HTML document and used this script to put the HTML5 page inside of it, AND fill the page leaving a dedicated "margin" at the bottom:

    <iframe id="frame" src="http://google.com/" width="100%" frameborder="0" marginheight="0" marginwidth="0"></iframe>

    <script type="text/javascript">

    function resizeIframe() {

        var height = document.documentElement.clientHeight;

        height -= document.getElementById('frame').offsetTop;

        

        // not sure how to get this dynamically

        height -= 20; /* whatever you set your body bottom margin/padding to be */

        

        document.getElementById('frame').style.height = height +"px";

        

    };

    document.getElementById('frame').onload = resizeIframe;

    window.onresize = resizeIframe;

    </script>

    ~Sol

  • Thanks for all the help guys. I ended up finding a script that worked for what I wanted, only to realise it was a failed attempt anyway since I need the links that will appear at the bottom to be able to interface with the canvas.

    I wasn't thinking ahead properly.

    All the same, this will still come in handy for the future.

    <iframe id="frame" src="http://google.com/" width="100%" frameborder="0" marginheight="0" marginwidth="0"></iframe>

    <script type="text/javascript">

    function resizeIframe() {

        var height = document.documentElement.clientHeight;

        height -= document.getElementById('frame').offsetTop;

        

        // not sure how to get this dynamically

        height -= 20; /* whatever you set your body bottom margin/padding to be */

        

        document.getElementById('frame').style.height = height +"px";

        

    };

    document.getElementById('frame').onload = resizeIframe;

    window.onresize = resizeIframe;

    </script>

    ~Sol

  • Wink

    Thanks for the suggestions, however the site needs to scale with the browser window so it has to be set to stretch, unfortunately.

    I tried embedding the entire site in another HTML page using an iframe, but for some reason iframe height cannot be set using a %, only px for some reason. Width is ok, but height appears to be not so much ok. :/

    This is really annoying.

    I did figure out though, that I can hide text behind the canvas, so there is the SEO problem handled already. Now to just figure out how the hell I'm supposed to fix this problem with adding text below the canvas.

    ~Sol

  • Morhaus

    The index.html is now currently the default exported index.html you get with any C2 project.

    The canvas position is set to "fixed", though I have tried all other options.

    I am using "stretch to fit browser" though, which is rather important since the site has to fit on a single page with no scrolling. Not sure if this is causing a problem?

    I tried making a new HTML page from scratch, and used an iframe to house the HTML5 component leaving a gap at the bottom for the standard component I wanted to add. This worked grest up until the time I wanted to resize the window. It seems the "stretch to fit" feature only works if it's in the main browser window, and not loaded inside of an iframe.

    I can still post the index file if you want to, but it's probably not going to be useful since it's currently unmodified.

    ~Sol

  • I tried adding it in between the div tags, and it appears at the top... so unless I need to add more div tags to pull the canvas up into the middle... I just don't understand why it adds text etc ABOVE the canvas, but seemingly ignores anything added below?

    Frustrating for something that, on the surface, seems like it should be simple.

    *EDIT*

    I also set overflow to SCROLL instead of HIDDEN, which also didn't help :/

    ~Sol

  • I want to add some standard HTML stuff at the BOTTOM of my "app". If I edit the index.html file, I can easily add text or tables, etc to the TOP of the page by placing the required code inside the <DIV> tag and above the <canvas> tag. If I put anything after the </canvas> tag, it seems to ignore it... unless there is some other factor I am missing.

    Anyone have any idea how to add "stuff" at the BOTTOM of the page, underneath the canvas?

    ~Sol

  • Wink

    I am currently trying to figure out how to add extra, standard HTML at the bottom of the canvas. I can seem to add to the top, but I want it below. This will be used for SEO tags, as well as other info... if I can figure out how to do it.

    Also, the YOUR ORDER page will open a whole new page, so that's why there is no menu for that ;).

    Thanks for the feedback! :D

    ~Sol

  • 01lifeleft Haha thanks ;)

    GenkiGenga IT would be the linear resizing. I guess I tried to find a happy medium for the graphical scale, as not to have a blurry mess on high resolution displays, but also still have the text at least somewhat readable on lower res displays. Until we have a vector based text object that remains at a set scale independent of the viewport, this will always be a problem to some degree I'm afraid... unless someone else has a suggestion?

    ~Sol

  • Hey guys,

    As some of you know I have been working with C2 to create (possibly) the first HTML5 website for commercial use.

    It is nearly complete, and can be viewed on the temporary server here:

    MONJAVA COFFEE TEST SERVER

    I am aware that Chrome has some resize issues with the iFrame, which seems to be a Chrome problem not a C2 problem. Unfortunately I can't do much about this.

    Check it out and see what you think. My deadline for presentation is tomorrow morning, so I better get stuck in to it. I have a bit more to complete!

    ~Sol

  • Hey, that was fast. Thanks a lot, Septeven :D

    I did figure out a way around it, simply by destroying and creating the boxes again. I managed to work the default size into the design... but fantastic :D That will certainly be useful in the future.

    ~Sol

  • When pasting actions/conditions/events/etc it would be nice if the pasted events/actions were pasted directly below the selected event/action.

    It's slightly annoying having to paste them, them grab and drag them to where they need to be every time. If I have a "set group disabled" event as the last action, then I may want the "create object" event to be above it. By selecting/highlighting an action higher up and pasting, I would expect the newly pasted actions to be directly below the selected action.

    I hope this made sense :/

    Not really an important addition, but personally I find it really irritating :P

    ~Sol

  • Update on the iOS issue. Kyatric discovered as I had suspected... it is a problem specifically with iOS and Safari. There is no way around it, at this time.

    ~Sol

  • Awesome plugin. Downloading now since I need a combo box for this website I am doing. The coolest part is, this box does nothing... it's just there for customer satisfaction or some rubbish (advertising at it's best!), so this will work wonderfully. :D

    Looking forward to the final version though, since I can see this being very handy in practical situations :D

    *EDIT*

    Small issue... there seems to be no way to set the size of the box at runtime, or make it visible/invisible. Either one of these options would be nice, since I either need to be able to hide and show it when needed, or to be able to create it and define the size I want (not just the default size).

    Any chance of a quick addition?

    ~Sol