Game Development Community

[Solved] GUI platform target universal not working with me

by Ghonium · in iTorque 2D · 11/16/2011 (8:35 am) · 2 replies

hi
please can you help me on this
I have a GUI main menu of my game
on iPhone4 and iPad the buttons shown very small
I put target platform as universal but not working
do I have to make 3 GUI files for every device? what normally you doing for using GUI ? this is my first game, im trying to learn and getting experience

this is my GUI
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(theMenuGui) {
   canSaveDynamicFields = "0";
   PlatformTarget = "UNIVERSAL";
   isContainer = "1";
   Profile = "GuiDefaultProfile";
   HorizSizing = "right";
   VertSizing = "bottom";
   Position = "0 0";
   Extent = "320 480";
   MinExtent = "8 2";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";

   new GuiBitmapButtonCtrl(level1button) {
      canSaveDynamicFields = "0";
      PlatformTarget = "UNIVERSAL";
      isContainer = "0";
      Profile = "GuiDefaultProfile";
      HorizSizing = "right";
      VertSizing = "bottom";
      Position = "8 70";
      Extent = "100 80";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "loaduplevel(1);";
      hovertime = "1000";
      groupNum = "-1";
      buttonType = "PushButton";
      UseMouseEvents = "0";
      bitmap = "gui/btn_img/level1";
   };
};
//--- OBJECT WRITE END ---

#1
11/16/2011 (8:49 am)
@Ghonium - Have a look at this resource: Universal GUIs
#2
11/16/2011 (10:40 am)
thank you Michael that really useful