| Mirage Source http://www.miragesource.net/forums/ |
|
| Map Name in Title Bar http://www.miragesource.net/forums/viewtopic.php?f=210&t=64 |
Page 1 of 1 |
| Author: | Tutorial Bot [ Thu Jun 01, 2006 9:51 pm ] |
| Post subject: | Map Name in Title Bar |
Author: derNalia Difficulty: 1/5 This tutorial will show you how to put the map's name into the title bar. :: CLIENT SIDE :: In modGameLogic, find: Code: ' Draw map name Comment that whole bit out.If Map(GetPlayerMap(MyIndex)).Moral = MAP_MORAL_NONE Then Call DrawText(TexthDC, Int((20.5) * PIC_X / 2) - (Int(Len(Trim(Map(GetPlayerMap(MyIndex)).Name)) / 2) * 8) + sx, 2 + sx, Trim(Map(GetPlayerMap(MyIndex)).Name), QBColor(BrightRed)) ElseIf Map(GetPlayerMap(MyIndex)).Moral = MAP_MORAL_SAFE Then Call DrawText(TexthDC, Int((20.5) * PIC_X / 2) - (Int(Len(Trim(Map(GetPlayerMap(MyIndex)).Name)) / 2) * 8) + sx, 2 + sx, Trim(Map(GetPlayerMap(MyIndex)).Name), QBColor(White)) ElseIf Map(GetPlayerMap(MyIndex)).Moral = MAP_MORAL_NO_PENALTY Then Call DrawText(TexthDC, Int((20.5) * PIC_X / 2) - (Int(Len(Trim(Map(GetPlayerMap(MyIndex)).Name)) / 2) * 8) + sx, 2 + sx, Trim(Map(GetPlayerMap(MyIndex)).Name), QBColor(Black)) End If Beneath that, add: Code: 'Map Name in Title Bar If Map(GetPlayerMap(MyIndex)).Moral = MAP_MORAL_NONE Then frmMirage.Caption = "GAME_NAME - " & (Map(GetPlayerMap(MyIndex)).Name) & " (No Morals)" ElseIf Map(GetPlayerMap(MyIndex)).Moral = MAP_MORAL_SAFE Then If Map(GetPlayerMap(MyIndex)).Right = 36 And Map(GetPlayerMap(MyIndex)).Left = 366 And Map(GetPlayerMap(MyIndex)).Up = 2 Then frmMirage.Caption = "GAME_NAME" & " (Safe Zone)" Else frmMirage.Caption = "GAME_NAME - " & (Map(GetPlayerMap(MyIndex)).Name) & " (Safe Zone)" End If ElseIf Map(GetPlayerMap(MyIndex)).Moral = MAP_MORAL_NO_PENALTY Then frmMirage.Caption = "GAME_NAME - " & (Map(GetPlayerMap(MyIndex)).Name) & " (No Death Penalty)" End If That's all! |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|