Really dopey Pog question

Home Forums Mods and POG Scripting Really dopey Pog question

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #15074
    Second Chance
    Participant

    Well, since I lost everything I’ve ever made when my hard drive crashed (except SW stuff), I have to start coding all over again. And would you believe it, I can’t remember half of how to do it. Can someone (GT, EM64) tell me why my back buttons and title won’t show up. Here’s the code:ScenarioMain()
    {
    iGUI.OverlayCustomScreen("test_scene1.StartScreen");
    }

    Main()
    {

    }

    StartScreen()
    {
    hwindow shady_bar;

    shady_bar = iGUI.CreateShadyBar();
    iGUI.AddTitle(shady_bar, "Screen 1");
    iGUI.AddBackButton(shady_bar, "test_scene1.On_Back_Button");
    //iGUI.CreateBackButton( 10, 100, shady_bar );
    }

    On_Back_Button()
    {
    GUI.RemoveLastOverlay();
    }

    // END OF FILE
    I get the shady bar fine. But everything attached to it refuses to exist. All my uses, provides and prototypes are there. What dumb-ass, obvious thing am I doing wrong? Did I need to declare my title and back button as separate window objects? Thanks.

    Grrr. It’s really frustrating getting hung up so early on basic stuff after all the work I’ve already done. :(!

    *edit*
    Ok, some debugging tells me it looks like it’s a problem with my screen class. What’s wrong with it?

    Phooey! Nevermind. My screen class was ok. It turns out that I did after all forget to export the necessary functions.

    Well, I feel silly. :p

    mailto:second_chance@cox.net
    The Ultimate Guide To Modding: I-War 2 – Edge Of Chaos (on hold during SW MP mod)
    http://cartoons.sev.com.au/index.php?catid=4


    [img]http://members.cox.net/hubner/images/sc_icon150.gif[/img] . [img]http://cartoons.sev.com.au/archives/s119.jpg[/img]

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.