Mirage Source http://web.miragesource.net/forums/ |
|
How do I get a BattleMsg to the topleft? http://web.miragesource.net/forums/viewtopic.php?f=201&t=2541 |
Page 1 of 1 |
Author: | Egon [ Sun Aug 26, 2007 6:44 am ] |
Post subject: | How do I get a BattleMsg to the topleft? |
I'm really not too sure on this, I copied a Call from Code: 'Draw map name and tried to edit that.. But it didn't work.Edit: Also, how would I made it global so everyone'll see it? |
Author: | Rezeyu [ Sun Aug 26, 2007 6:46 am ] |
Post subject: | Re: How do I get a BattleMsg to the topleft? |
Define.. Battle message. |
Author: | Egon [ Sun Aug 26, 2007 6:57 am ] |
Post subject: | Re: How do I get a BattleMsg to the topleft? |
It's the message you get on the actual map. |
Author: | Rezeyu [ Sun Aug 26, 2007 7:20 am ] |
Post subject: | Re: How do I get a BattleMsg to the topleft? |
Code: Dim MSG as String Call DrawText(TexthDC, (1 * PIC_X) + 4, (1* PIC_Y) + 12, MSG, QBColor(BrightRed)) That should be the top left.. ish. I can't remember if it counts from 0 or 1 for tiles. .XD In any case, just make MSG = whatever you want blitted there. |
Author: | Egon [ Sun Aug 26, 2007 7:39 am ] |
Post subject: | Re: How do I get a BattleMsg to the topleft? |
I think it starts at 0. And this is what I've got so far. Code: If GetPlayerAccess(Index) > 0 Then I just want that BattleMsg to be in the top left for however long a normal BattleMsg is and for everyone to be able to see it.
Call AddLog("[" & GetPlayerName(Index) & "]:" & MSG, ADMIN_LOG) Call BattleMsg(Index, "***", Yellow, 0) Call AdminMsg("[" & GetPlayerName(Index) & "]:" & MSG, AdminColor) End If |
Author: | Rezeyu [ Sun Aug 26, 2007 7:43 am ] |
Post subject: | Re: How do I get a BattleMsg to the topleft? |
What's in the "BattleMsg" sub? |
Author: | Egon [ Sun Aug 26, 2007 7:48 am ] |
Post subject: | Re: How do I get a BattleMsg to the topleft? |
Code: Sub BattleMsg(ByVal Index As Long, ByVal MSG As String, ByVal Color As Byte, ByVal Side As Long)
Call SendDataTo(Index, "damagedisplay" & SEP_CHAR & Side & SEP_CHAR & MSG & SEP_CHAR & Color & SEP_CHAR & END_CHAR) End Sub |
Author: | Rezeyu [ Sun Aug 26, 2007 7:54 am ] |
Post subject: | Re: How do I get a BattleMsg to the topleft? |
Client side, whatever you have to recieve the "damagedisplay" packet, set a timer variable to whatever you want. Like.. Timer = 15 Then in the Gameloop add Code: If Timer > 0 Then
Call Drawtext(blah blah blah) End If |
Author: | Egon [ Sun Aug 26, 2007 7:57 am ] |
Post subject: | Re: How do I get a BattleMsg to the topleft? |
Actualy, I'm going to try something that just popped into my head. If it doesn't work, I'll try the timer. |
Author: | Egon [ Sun Aug 26, 2007 8:10 am ] |
Post subject: | Re: How do I get a BattleMsg to the topleft? |
Ok, new idea, lets forget the BattleMsg. Say if I was to make a lable on the picScreen and whenever a person with the access of greater then one uses the "@" command it would show a caption and then go away two seconds later. This seems much easyer. |
Author: | Rezeyu [ Sun Aug 26, 2007 8:13 am ] |
Post subject: | Re: How do I get a BattleMsg to the topleft? |
Duplicate the Broadcast crap, but make the receiving packet make lblWhatever.Caption = Packet |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |