Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | __repr__ |
def | __str__ |
def | getNormalXYWH |
def | getNormalCenter |
def | getNormalTL |
def | getNormalBR |
def | getNormalWH |
def | getHotRect |
def | getSpriteRect |
def | getTextRect |
Data Fields | |
x | |
y | |
w | |
h | |
ref | |
mode | |
A rectangle on the screen
ref: may be (room), (screenx,screeny) or (screenx,screeny,marginx,marginy)
(first takes the dimensions from the room, the next from the tuple itself
just the dimensions but margins and stuff from the root, and the last
takes everything from the tuple)
def __repr__ | ( | self) |
Definition at line 466 of file GUI.py.
References GUIRect.h, GzipFile.mode, ZipFile.mode, GUIRect.mode, GUIRect.ref, GUIRect.w, GUIRect.x, and GUIRect.y.
def __str__ | ( | self) |
Definition at line 468 of file GUI.py.
References GUIRect.h, GzipFile.mode, ZipFile.mode, GUIRect.mode, GUIRect.ref, locale.str(), GUIRect.w, GUIRect.x, and GUIRect.y.
def getHotRect | ( | self) |
(BOTTOM, LEFT, WIDTH, HEIGHT) as needed by Base hotspots
Definition at line 540 of file GUI.py.
References GUIRect.getNormalXYWH().
def getNormalBR | ( | self) |
returns BOTTOM-RIGHT coordinate pair
Definition at line 524 of file GUI.py.
References GUIRect.getNormalXYWH().
def getNormalCenter | ( | self) |
def getNormalTL | ( | self) |
returns TOP-LEFT coordinate pair
Definition at line 519 of file GUI.py.
References GUIRect.getNormalXYWH().
def getNormalWH | ( | self) |
returns WIDTH-HEIGHT dimensions
Definition at line 529 of file GUI.py.
References GUIRect.getNormalXYWH().
def getNormalXYWH | ( | self) |
returns (x,y,w,h) - x/y is top-left - in Base coordinates
Allow two kinds of screen dimension overrides, for design convenience
a) (screenx,screeny) - margins set as per root settings
b) (screenx,screeny,marginx,marginy) - set both dimensions and margin manually
Definition at line 471 of file GUI.py.
References GUIRect.h, GzipFile.mode, ZipFile.mode, GUIRect.mode, GUIRect.ref, inspect.trace(), GUIRect.w, GUIRect.x, and GUIRect.y.
def getSpriteRect | ( | self) |
(CenterX, CenterY, WIDTH, -HEIGHT) as needed by Base sprites
Definition at line 545 of file GUI.py.
References GUIRect.getNormalXYWH().
def getTextRect | ( | self) |
(TOP, LEFT, WIDTH, HEIGHT) as needed by Base textboxes
Definition at line 550 of file GUI.py.
References GUIRect.getNormalXYWH().