Blockland Forums > Modification Help
GUI Modifying Help [Solved by Port!]
jes00:
I cannot find why this is not working, but it's not.
--- Code: ---if(isObject(Button_FillCan))
Button_FillCan.position = "205 232";
if(isObject(Button_Duplicator))
Button_Duplicator.position = "205 192";
%fetchAllButton = new GuiBitmapButtonCtrl(Button_FetchAll)
{
profile = "BlockButtonProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "205 172";
extent = "99 19";
minExtent = "8 2";
visible = "1";
command = "adminGui::FetchAll();";
text = "Fetch All";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "base/client/ui/button1";
lockAspectRatio = "0";
alignLeft = "0";
overflowImage = "0";
mKeepCached = "0";
mColor = "255 255 255 255";
};
adminGui.add(%fetchAllButton);
--- End code ---
CityRPG:
adminGui.FetchAll();
jes00:
--- Quote from: CityRPG on January 19, 2012, 08:47:42 AM ---adminGui.FetchAll();
--- End quote ---
What?
CityRPG:
--- Quote from: jes00 on January 19, 2012, 04:19:24 PM ---What?
--- End quote ---
Your value for command is not valid. You're using the namespace :: instead of a .
Pah1023:
CityRPG, you can use '::' instead of '.'. but what do you mean it don't work, it won't appear on the gui? Or does the function don't get called?