
Посмотреть видеообзор сцены и скачать файлы можно здесь
Скриншоты
СпойлерПоказать
Код: Выделить всё
<img src="/cms/scenes/SpeciesOnEarth/Main/Icons/%SceneMain.TimeDay%.png" align="absmiddle"></img>
Данные беру из объектов systemStates и OperationalModes. Вы сами, индивидуально можете создавать методы, свойства, получать переменные из одного объекта и передавать на другой.
Код: Выделить всё
if ($this->getProperty('stateColor') == 'green') {
setGlobal('SpeciesOnEarth.SystemStateColor', 'system_green');
} else if ($this->getProperty('stateColor') == 'yellow') {
setGlobal('SpeciesOnEarth.SystemStateColor', 'system_yellow');
} else if ($this->getProperty('stateColor') == 'red') {
setGlobal('SpeciesOnEarth.SystemStateColor', 'system_red');
}
Код: Выделить всё
if ($this->getProperty('stateColor') == 'green') {
setGlobal('SpeciesOnEarth.SystemStateColor', 'system_green');
} else if ($this->getProperty('stateColor') == 'yellow') {
setGlobal('SpeciesOnEarth.SystemStateColor', 'system_yellow');
} else if ($this->getProperty('stateColor') == 'red') {
setGlobal('SpeciesOnEarth.SystemStateColor', 'system_red');
}