Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
However, I'm getting an error when I try to edit an object that I've already added some input fields to (using data from the tool). I can move them around using the arrows on the controller, but if I try to type in the position field (which worked when initially creating one) I get this strange error and the object disappears:
Error converting Lua Table entry position to Type UNityEngine.Vector3 on Class LuaUIInputState. Value = MoonSharp.Interpreter.Table. (Error converting Table to Vector, (x,y,z or 1,2,3))<2>
Any thoughts?
function onLoad(save_state)
local data = {
click_function = "setupLeft", function_owner = self,
label = "Choose\nLeft", tooltip = "Choose Bad player",
position = {0.6, -0.3, 2.5}, rotation = {0, 0, 180}, scale = {0.2, 0.2, 0.4},
width = 2600, height = 1600, font_size = 700,
}
self.createButton(data)
data = {
click_function = "setupRight", function_owner = self,
label = "Choose\nRight", tooltip = "Choose Good player",
position = {-0.6, -0.3, 2.5}, rotation = {0, 0, 180}, scale = {0.2, 0.2, 0.4},
width = 2600, height = 1600, font_size = 700
}
self.createButton(data)
end
And yes, I know how to properly save/load your own copy of a table. I've successfully installed scripts to auto-shuffle decks of cards so I at least know that much. But I am very very green with this stuff. Like, if LUA was a spoken language, I'm at the "Hello my name is..." stage of learning.
Used in Time Barons
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1505924807