Cdr.Keen Posted September 10, 2013 Share Posted September 10, 2013 Hello, is it possible to add a text input field to write in a number for an ammount or something like that? I found some code in the chat folder, but i don't get it to work. Link to comment Share on other sites More sharing options...
EnigmaGrey Posted September 10, 2013 Share Posted September 10, 2013 Erm. Um. Hm.I imagine what you want is this: ISRichTextPanel.lua and ISTextEntryBox.lua in the ISUI directory.You can see it used in the map selection screen, here self.textEntry = ISTextEntryBox:new("", self.textEntryLabel:getX() + self.textEntryLabel:getWidth() + 17, 68, self.width-170, 18); self.textEntry:initialise(); self.textEntry:instantiate(); self.textEntry:setAnchorLeft(true); self.textEntry:setAnchorRight(true); self.textEntry:setAnchorTop(true); self.textEntry:setAnchorBottom(false); self:addChild(self.textEntry);. . . createWorld(MapSelecter.instance.textEntry:getText()); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now