桌面模拟器-文本框-自动调整文本大小?

问题描述

我正在制作一款晦涩难懂的绝版游戏,《生物与文化》,可在《桌面模拟器》上找到。播放器板上有各种文本框。对于其中两个文本框,当没有足够的空间来显示播放器键入的内容时,我需要减小文本的大小。

我已经用C#编写了程序,并且有一个内置的自动调整大小功能,可以为文本框之类的字段启用此功能。桌面模拟器LUA和API是否允许这种功能

我正在使用Stump先生的文本框模板。

其中一个文本框的参数:

--name Credo
        {
            pos       = {0.35,0.12,0.93},rows      = 1,width     = 6000,font_size = 450,label     = "",value     = "Enter in Cult Credo Here",alignment = 2,rotation  = {0,0},height    = 500,scale     = {0.1,0.0075,0.1},},

这些参数从Stump先生传递到create_text-Box函数

function create_textBoxes()
for i,data in ipairs(ref_buttonData.house_inputs) do
    --Sets up reference function
    local funcName = "textBoxes"..i
    local func = function(_,_,val,sel) click_textBoxes(i,sel) end
    self.setvar(funcName,func)

    self.createInput({
        input_function = funcName,function_owner = self,label          = data.label,alignment      = data.alignment,position       = data.pos,scale          = buttonScale,width          = data.width,height         = (data.font_size*data.rows)+24,font_size      = data.font_size,color          = buttonColor,font_color     = buttonFontColor,value          = data.value,rotation       = data.rotation,height         = data.height,scale          = data.scale,})
end
end

感谢您的帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)