1
Modification Help / Re: Interactive Rigid Objects
« on: November 24, 2018, 03:09:22 AM »
So basically I made an object spawn when a “weapon” was thrown. That object is supposed to be interactive.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
You could dofunction YourGui::addButton(), and make the new button's position use the previous one's and += it by 30 or something.
I think he wants to dynamically add tabs, like google chrome's window tabs.
No it doesn't, the default script creates the tabs and the tab shifter just adds buttons to move them around.Sorry for not being more specific, but that's what I'm asking for. I already realize that this is a default script using add-on.
There's a simple way. Download mission editor, You may not be able to use the mission editor, but you can use the GUI Editor. It gererates the script for everything.I already have that. I'm not talking manually edit the gui. I want to use code. Take the picture I posted earlier. There are a few codes I know of that do it, but they are rtb. If you can support it, the add-on is called "GUI_TabShiftingBrickSelector". The add-on adds tabs to the brick selector if you have excess amount of brick categories turned on, so that you may switch and not have to turn any off. Sorry I don't know how to post a .zip.
function clientCmdStore_TabButtonsAdd(%this,%tab)
{
New_Btun.extent = %width SPC 25;
Store_TabButtons.add(%button);
}
%button = new GuiBitmapButtonCtrl(New_Btun) {
profile = "BlockButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "100 30";
minExtent = "8 2";
enabled = "1";
visible = "1";
text = "";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "base/client/ui/tab1";
lockAspectRatio = "0";
alignLeft = "0";
alignTop = "0";
overflowImage = "0";
mKeepCached = "0";
mColor = "220 220 220 255";
};
I also need to know if there is a way to change the color of a control. specifically a button.controlName.setmColor = r g b a
I think you can set the GUI control as a global variable and then use originalguiname.add($newgui);Nah. I just got syntax errors.Code: [Select]$newguistuff = new guibuttonctrl { //stuff here
Originalguiname.add($newguistuff);