FANDOM


Originally posted by Clan_fd Demo: http://youtu.be/CyT0v7-GXGU

In client module, Interface.bb, add this

Global WChat ;You can rename this

where the other global variables are created.

In client module, Interface3D.bb, find this

If GY_ButtonHit(BHistoryMode)
      HistoryMode = Not HistoryMode
      ; Hide history
      If HistoryMode = False
         GYG.GY_Gadget = Object.GY_Gadget(BHistoryMode)
         EntityTexture(GYG\EN, ActionBarDownTex)
         GY_PositionGadget(BHistoryMode, GY_GadgetX#(BHistoryMode), Chat\Y# + 0.005)
         GY_GadgetAlpha(BHistoryUp, 0.0)
         GY_GadgetAlpha(BHistoryDown, 0.0)
         UpdateChatTextDisplay()
      ; Show history
      Else
         GYG.GY_Gadget = Object.GY_Gadget(BHistoryMode)
         EntityTexture(GYG\EN, ActionBarUpTex)
         GY_PositionGadget(BHistoryMode, GY_GadgetX#(BHistoryMode), Chat\Y# + Chat\Height# - 0.02)
         GY_GadgetAlpha(BHistoryUp, 0.85)
         GY_GadgetAlpha(BHistoryDown, 0.85)
         FirstHistoryLine = MaxHistoryLine - MaxChatLine
         If FirstHistoryLine < 0 Then FirstHistoryLine = 0
         UpdateChatTextDisplay()
      EndIf
   EndIf

and change this line

GY_PositionGadget(BHistoryMode, GY_GadgetX#(BHistoryMode), Chat\Y# + 0.005)

to

GY_PositionGadget(BHistoryMode, GY_GadgetX#(BHistoryMode), 0.0)

Also, change this line

GY_PositionGadget(BHistoryMode, GY_GadgetX#(BHistoryMode), Chat\Y# + Chat\Height# - 0.02)

to

GY_PositionGadget(BHistoryMode, GY_GadgetX#(BHistoryMode), 0.9)

Find this

; Chat text display
   MaxChatLine = Int(Floor#(Chat\Height# / 0.025)) - 1
   Dim ChatLines(MaxChatLine)

and add this below

WChat = GY_CreateWindow("Chat", Chat\X#, Chat\Y#, Chat\Width#, Chat\Height#, True, False, False)

Find this

ChatLines(i) = GY_CreateLabel(0, X#, Y#, String$(" ", 200))

and replace with this

ChatLines(i) = GY_CreateLabel(WChat, X#, Y#, String$(" ", 200))

Find this

BHistoryMode = GY_CreateButton(0, X#, Chat\Y# + 0.005, 0.02, 0.015, "", False, 0, 0, 0, ActionBarDownTex)

and replace with this

BHistoryMode = GY_CreateButton(WChat, X#, 0.0, 0.08, 0.08, "", False, 0, 0, 0, ActionBarDownTex)

Find this

BHistoryUp = GY_CreateButton(0, X#, Chat\Y# + 0.005, 0.02, 0.015, "", False, 0, 0, 0, ActionBarUpTex)
   BHistoryDown = GY_CreateButton(0, X#, Chat\Y# + 0.025, 0.02, 0.015, "", False, 0, 0, 0, ActionBarDownTex)

and replace with this

BHistoryUp = GY_CreateButton(WChat, X#, 0.0, 0.08, 0.08, "", False, 0, 0, 0, ActionBarUpTex)
   BHistoryDown = GY_CreateButton(WChat, X#, 0.08, 0.08, 0.08, "", False, 0, 0, 0, ActionBarDownTex)