Experienced Elementalist
- Joined
- Oct 14, 2015
- Messages
- 293
- Reaction score
- 86
I bring you random announcement the lobby interface, and something very simple to add.
Open: ZGameInterface.cpp
Search for: void ZGameInterface::OnDrawStateLobbyNStage(MDrawContext* pDC)
Added:
Open: Lobby.xml
Added:
Credits: Avrora :w00t:
Open: ZGameInterface.cpp
Search for: void ZGameInterface::OnDrawStateLobbyNStage(MDrawContext* pDC)
Added:
Code:
pLabel = (MLabel*)pRes->FindWidget("Lobby_RandomAnnounce");
int RandomMsg = (timeGetTime() / (3 * 60 * 1000) % 2); // 3 min
int i = 0;
for (i = 0; i < RandomMsg; i++);
switch (i)
{
case 0:
sprintf(buf, "Update: 0.0.0.1");
break;
case 1:
sprintf(buf, "Welcome The Gunz!");
break;
}
if (pLabel) pLabel->SetText(buf);
Open: Lobby.xml
Added:
PHP:
<LABEL item="Lobby_RandomAnnounce" parent="Lobby">
<FONT>FONTa8_O2Wht</FONT>
<TEXTCOLOR>
<R>210</R>
<G>210</G>
<B>210</B>
</TEXTCOLOR>
<BOUNDS>
<X>15</X>
<Y>566</Y>
<W>380</W>
<H>20</H>
</BOUNDS>
<TEXT></TEXT>
</LABEL>
Credits: Avrora :w00t:
Attachments
You must be registered for see attachments list
Last edited: