• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Modal Window

nevix

Tunzodus.net
Joined
Mar 31, 2010
Messages
356
Reaction score
62
Location
Lithuanian
Code:
function onSay(player, words, param)



local title = "Choose your ability!"
local message = 'Points to spend: \n Plus            Name            Current\n '
local window = ModalWindow(1, title, message)
player:registerEvent("modal_1")


window:addChoice(1, '[+1%]            [Attack bonus]            [+%2]')
window:addChoice(2, '[+1%]            [Attack bonus]            [+%2]')
window:addChoice(3, '[+1%]            [Attack bonus]            [+%2]')
window:addChoice(4, '[+1%]            [Attack bonus]            [+%2]')
window:addChoice(5, '[+1%]            [Attack bonus]            [+%2]')




window:addButton(1, "Confirm")
window:addButton(10, "Cancel")
window:setDefaultEscapeButton(10)
window:setDefaultEnterButton(1)

window:sendToPlayer(player)

end


and that [+%2] doesn't display on the window. How to increase the side of modal window?
 
Back
Top