ah_sce_unpacked/unpacked/Custom_Model_Bag Community-Created Player CardsInvestigators ed4ca7/Custom_Model_Bag Artifact Expansion 30f39e/Custom_Model_Bag Darrell c3e12f.ttslua
2021-01-02 23:31:19 -05:00

29 lines
928 B
Plaintext

function onload()
b_display = { index = 0,
click_function = 'updateDisplay',
label = self.getName(),
function_owner = self,
position = {0, 1.4, 0},
rotation = {0, 270, 0},
width = 500,
height = 200,
font_size = 200}
local description = string.match(self.getDescription(), '%d+')
if description != '' and type(tonumber(description)) == 'number' then
b_display.font_size = tonumber(description)
end
self.createButton(b_display)
end
function updateDisplay()
b_display.label = self.getName()
local description = string.match(self.getDescription(), '%d+')
if description != '' and type(tonumber(description)) == 'number' then
b_display.font_size = tonumber(description)
end
self.editButton(b_display)
end