|
| 22 Oct 2011 03:50 PM |
K so I just learned about RbxGui today, and I'm already having a problem. I'm trying to make a simple message box. My problem is that I don't know what to use for the third argument. I have this so far:
wait(5)
local rbx = LoadLibrary("RbxGui") local message = rbx.CreateMessageDialog("Testing","Lolz",{Derp = function() print('hai') end}) message.Parent = script.Parent.ScreenGui message.Position = UDim2.new(0,0,0,0) message.Size = UDim2.new(0,500,0,500)
It creates the message with title "Testing" and message "Lolz", but no buttons show up. I'm confused as to what the third argument needs to be. The wiki says "'buttons' input is an array of tables that contains a 'Text' and 'Function' field for the text/callback of each button." Halp?
-[::ƧѡÎḾḠΰῩ::]- -[::Maker of stuff and breaker of combos::]- |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2011 03:53 PM |
No views D:
Forever alone.
-[::ƧѡÎḾḠΰῩ::]- -[::Maker of stuff and breaker of combos::]- |
|
|
| Report Abuse |
|
|
NBCKing
|
  |
| Joined: 09 Oct 2011 |
| Total Posts: 133 |
|
|
| 22 Oct 2011 03:58 PM |
| I havent learned about that stuff yet. :( |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2011 04:01 PM |
{ {Text = "hi", Function = function() end}, {Text = "wat", Function = function() end} }
Text is what shows up on the button, Function is what happens when the button is pressed. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2011 04:02 PM |
| Oh, and by the way, legit people figure this out by looking at the source code of RbxGui, not by searching the wiki for it :D |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2011 04:07 PM |
But I dunno hao to does that 3:
-[::ƧѡÎḾḠΰῩ::]- -[::Maker of stuff and breaker of combos::]- |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2011 04:12 PM |
1. Edit your settings or your reflectionmetadata (settings is easier) to show you all the objects in the game.
2. Insert a script into Workspace
3. Change the script's LinkedSource to that of the StarterScript thingy that's somewhere in your game
4. Look at the source, find where it sets the RbxGui library, and put its id in the LinkedSource of your script
5. Look through thousands of lines of code (using Notepad++ is suggested because it has moar cool stuff than roblox's ide) to figure out how the function that you're using works. |
|
|
| Report Abuse |
|
|