예제 #1
0
# tileset = {
#     "capacity": 4,
#     "direction": 2,
#     "maping": [
#         [ None   , None   , None   , None   , None    ],
#         [ None   , None   , None   , None   , None    ],
#         [ None   , [3,0,4], [4,0,4], [5,0,4], [6,0,4] ],
#         [ None   , None   , None   , None   , None    ],
#         [ None   , None   , None   , None   , None    ]
#     ]
# }

# GUI.Formation(render, tileset, chars, foo)

GUI.Blueprint('actionpreview')

char1 = {
    'name': 'Kivu',
    'job': 'Kivu',
    'team': 1,
    'sign': 1,
    'sprite': '4A_F_0',
    'lv': 15,
    'exp': 0,
    'hp': 225,
    'hpmax': 225,
    'mp': 32,
    'mpmax': 36,
    'ct': 50,
    'br': 12,
예제 #2
0
import direct.directbase.DirectStart
from direct.gui.OnscreenText import OnscreenText
from direct.gui.DirectGui import *
from pandac.PandaModules import *
import GUI


def exemplecallback(text):
    print "You clicked the row #" + str(text)


def cancelcallback():
    print "Bye"


GUI.Blueprint('menu0')

columns = [
    {
        'name': "abilityName",
        'label': "Ability",
        'x': -93,
        'font': GUI.regularfont,
        'align': TextNode.ALeft
    },
    {
        'name': "mpCost",
        'label': "MP",
        'x': 4,
        'font': GUI.regularfont,
        'align': TextNode.ALeft