17 lines
609 B
Text
17 lines
609 B
Text
|
from direct.gui.OnscreenText import OnscreenText
|
||
|
from direct.gui.DirectGui import *
|
||
|
from pandac.PandaModules import TextNode
|
||
|
|
||
|
bk_text = ""
|
||
|
textObject = OnscreenText(text = bk_text, pos = (0.95,-0.95),
|
||
|
scale = 0.07,fg=(1,0.5,0.5,1),align=TextNode.ACenter,mayChange=1)
|
||
|
|
||
|
def setText():
|
||
|
bk_text = "ZoneFound"
|
||
|
textObject.setText(bk_text)
|
||
|
houseZoneGet = base.localAvatar.getZoneId()
|
||
|
houseZoneGet += 10
|
||
|
houseZoneGet = int(houseZoneGet)
|
||
|
base.cr.sendSetZoneMsg(houseZoneGet)
|
||
|
|
||
|
b = DirectButton(text = ("Raid House", "Raid", "Raid", "Raid House"), scale=.06, pos = (0,-.95,-.95), command=setText)
|