About the studio activation

Have modding questions or discovered something new? Post here.
Post Reply
ReoN
Tank L3
Tank L3
Posts: 481
Joined: Mon Sep 07, 2009 2:57 pm
Location: Fantasy World.

About the studio activation

Post by ReoN »

So I've been looking around in the base.x file of army men rts, and I found this code which included 3 buttons - Load, Safe load, and Cancel
I'm not an expert in all of this but isn't it suppose to be ''Studio'' and not ''Cancel''? If so, you can see there is no command in the ''Cancel'' button which orders to start something.

Code: Select all

CreateControl("StudioTool::MissionLoad", "MissionSelection")
{
  Text("Load Mission");
  Style("MissionSelect", "ShowHidden");

  CreateControl("Menu", "Menu")
  {
    Geometry("Bottom", "Right");
    Pos(-5, -5);
    Style("Horizontal", "NoAutoSize", "!DropShadow", "Transparent");
    MenuEdge(0);

    ItemConfig()
    {
      ReadTemplate("Std::Button");
      Font("System");
      Size(80, 25);
    }
    AddItem("Load")
    {
      OnEvent("Button::Notify::Pressed")
      {
        SendNotifyEvent("<<", "Game::MissionSelection::Message::Select");
        Deactivate("<<");
        Cmd("sys.runcode studio");
      }
    }
    AddItem("SafeLoad")
    {
      OnEvent("Button::Notify::Pressed")
      {
        Cmd("gamegod.dosafeload");
        SendNotifyEvent("<<", "Game::MissionSelection::Message::Select");
        Deactivate("<<");
        Cmd("sys.runcode studio");
      }
    }
    AddItem("Cancel")
    {
      OnEvent("Button::Notify::Pressed")
      {
        Deactivate("<<");
      }
    }
  }
User avatar
{EMC}Methuselah96
Programmer
Programmer
Posts: 723
Joined: Sat May 08, 2010 3:22 pm
Location: Philadelphia, PA, United States
Contact:

Re: About the studio activation

Post by {EMC}Methuselah96 »

You're right you're not an expert.
Image
User avatar
»§TorN WaR«
Grunt L2
Grunt L2
Posts: 116
Joined: Thu Oct 25, 2012 6:15 pm
Location: sitting on this chair
Contact:

Re: About the studio activation

Post by »§TorN WaR« »

CREO QUE ESTAS COLOCANDO QUE JUGAR UNA PARTIDA GUARDADA
:|
Momma just killed a man[Bohemian Rhapsody]
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests