added weather viewelement to displayreplay

This commit is contained in:
louis 2016-03-20 13:49:17 +01:00
parent a1269c2667
commit 5eaad6565e
3 changed files with 17 additions and 1 deletions

View File

@ -117,6 +117,7 @@ enum class eVeDisplayReplay {
datetime,
time,
scrapercontent,
currentweather,
rectitle,
recinfo,
currenttime,

View File

@ -41,6 +41,7 @@ void cViewReplay::SetViewElements(void) {
viewElementNames.insert(pair<string, int>("datetime", (int)eVeDisplayReplay::datetime));
viewElementNames.insert(pair<string, int>("time", (int)eVeDisplayReplay::time));
viewElementNames.insert(pair<string, int>("scrapercontent", (int)eVeDisplayReplay::scrapercontent));
viewElementNames.insert(pair<string, int>("currentweather", (int)eVeDisplayReplay::currentweather));
viewElementNames.insert(pair<string, int>("rectitle", (int)eVeDisplayReplay::rectitle));
viewElementNames.insert(pair<string, int>("recinfo", (int)eVeDisplayReplay::recinfo));
viewElementNames.insert(pair<string, int>("currenttime", (int)eVeDisplayReplay::currenttime));
@ -275,6 +276,7 @@ void cViewReplay::Flush(void) {
Render((int)eVeDisplayReplay::rectitle);
Render((int)eVeDisplayReplay::recinfo);
Render((int)eVeDisplayReplay::scrapercontent);
Render((int)eVeDisplayReplay::currentweather);
Render((int)eVeDisplayReplay::customtokens);
} else {
Render((int)eVeDisplayReplay::backgroundmodeonly);

View File

@ -3,7 +3,7 @@
<!ENTITY % functions SYSTEM "functions.dtd">
<!ELEMENT displayreplay (background | backgroundmodeonly |datetime | time |
scrapercontent | rectitle | recinfo | currenttime |
scrapercontent | currentweather | rectitle | recinfo | currenttime |
totaltime | endtime | progressbar | cutmarks | controlicons |
controliconsmodeonly | progressmodeonly | jump | message | onpause |
onpausemodeonly | customtokens)*>
@ -88,6 +88,19 @@
condition CDATA #IMPLIED
>
<!ELEMENT currentweather (areacontainer|area|areascroll)*>
<!ATTLIST currentweather
delay CDATA #IMPLIED
fadetime CDATA #IMPLIED
shifttime CDATA #IMPLIED
shifttype CDATA #IMPLIED
shiftmode CDATA #IMPLIED
startx CDATA #IMPLIED
starty CDATA #IMPLIED
debug CDATA #IMPLIED
condition CDATA #IMPLIED
>
<!ELEMENT rectitle (areacontainer|area|areascroll)*>
<!ATTLIST rectitle
delay CDATA #IMPLIED