安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






Could you do the Hydrogen one as well?
working as of March 2024
Program(1349,23): Error: 'IMyTextPanel' ***
Program(1351,23): Error: 'IMyTextPanel' ***
Program(1349,23): Error: 'IMyTextPanel' does not contain a definition for 'ShowPublicTextOnScreen' and no accessible extension method 'ShowPublicTextOnScreen' accepting a first argument of type
'MyTextPanel' could be found (are you missing a using directive or an assembly reference?)
Program(1351,23): Error: 'MyTextPanel' does not contain a definition for 'WritePublicText' and no accessible extension method 'WritePublicText' accepting a first argument of type 'MyTextPanel' could be found (are you missing a using directive or an assembly reference?)
thanks aswell to CoffinDodger and IsrA, I had no idea how to interperate those error codes, would have just had to keep scrolling through the workshop looking for a different script without your insight
BatteryStatus_Lcd_X.SetValue("FontColor", new Color(LCDbright,LCDbright,LCDbright)); // White
BatteryStatus_Lcd_X.SetValue("FontSize", 0.10f); // set Font size of your LCD
BatteryStatus_Lcd_X.SetValue("Font", (long)1147350002);
//BatteryStatus_Lcd_X.ShowPublicTextOnScreen();
//BatteryStatus_Lcd_X.WritePublicText("", false);
BatteryStatus_Lcd_X.WriteText("" + str_AllBoundlis_001_To_178, false);
}
}
}// End of Main script
bool batt_IsFunctional = false;
bool batt_IsCharging = false;
bool batt_OnlyRecharge = false;
bool batt_OnlyDischarge = false;
bool batt_IsOff = false;
ChargeMode batt_state_recharge=ChargeMode.Recharge;
ChargeMode batt_state_discharge=ChargeMode.Discharge;
if (batterylist_X.Enabled) {
batt_IsOff = true;
if (batterylist[i].IsFunctional) {
if (batterylist[i].IsWorking) {
batt_IsFunctional = true;
if (batterylist_X.IsCharging) { batt_IsCharging = true; }
else if (batterylist_X.ChargeMode==batt_state_recharge){ batt_OnlyRecharge = true; }
else if (batterylist_X.ChargeMode==batt_state_discharge){ batt_OnlyDischarge = true; }
//else if (batterylist_X.OnlyDischarge) { batt_OnlyDischarge = true; }
}}} else if (batterylist[i].IsFunctional) { batt_IsFunctional = true; }
(I want to add a custom title)
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2100606430
For anyone interested in how I solved this, on line 189, I changed "battAmountCount = 0;" instead of the grid's total number of batteries (batterList.Count);, then before line 200 I added a loop that counted the number of tagged batteries:
for (int i=0; i<batterylist.Count; i++)
{
if (OnlyBatteryWithNameTag) {
if (batterylist .CustomName.Contains(BatteryNameTag)) {
battAmountCount +=1; }
}
}
If you later decide you don't want to show tagged batteries only, I'm not sure, but you might want to undo the code changes.
at Sandbox.Game.Entities.Blocks.MyPr ogrammableBlock.RunSandboxedPro gramRction(Rction'l action, Strings response]
"
help