F farisnt Member Licensed User Longtime User Jan 16, 2013 #1 Hi, I need to create a menu when the Menu button is pressed, so there is a condition will run before creating the menu the code Code: Copy If KeyCode=KeyCodes.KEYCODE_MENU Then If sock.connected=True Then Activity.AddMenuItem ("Disconnect","CloseConnection") Else Activity.AddMenuItem ("Connect","ConnectToServer") End If End If What I want is to change the Text for the menu before it appear
Hi, I need to create a menu when the Menu button is pressed, so there is a condition will run before creating the menu the code Code: Copy If KeyCode=KeyCodes.KEYCODE_MENU Then If sock.connected=True Then Activity.AddMenuItem ("Disconnect","CloseConnection") Else Activity.AddMenuItem ("Connect","ConnectToServer") End If End If What I want is to change the Text for the menu before it appear
JonPM Well-Known Member Licensed User Longtime User Jan 17, 2013 #2 The menu items should only be created in Activity_Create. If you need a custom menu there are some libraries available to do this. Here is an older thread on the topic Upvote 0
The menu items should only be created in Activity_Create. If you need a custom menu there are some libraries available to do this. Here is an older thread on the topic