安装 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(越南语)
Українська(乌克兰语)
报告翻译问题






nice walpaper
I did notice that your original statement should have made sense, but I didn't think that it may have been an issue with using currentTime instead of currentHour, Glad I could help!
I just messed up the variable names :) The correct code is:
if(currentHour >= morningStarts && currentHour < dayStarts){
showDayPart(DayPart.Morning);
}
I modified the If arguments to start with this and it seemed to have done the trick, of course I may have broken the code but I guess I'll find out in the morning. I would recommend @RedMagic update the code to follow this for those who are night owls and occasionally restart their PC after midnight:
if(currentTime <= morningStarts && currentHour < morningStarts){
showDayPart(DayPart.night);
} else if (currentHour >= morningStarts && currentHour < dayStarts){
showDayPart(DayPart.Morning);
could be as simple as modifying the if-else statements or the way the script grabs the time. IE since the night cycle starts late, and its technically early, its defaulting to morning instead of night any tips would be appreciated though!