Refactor: remove "s" prefix from "sRender" method ( -> "render") Closes #44
This commit is contained in:
parent
a465a9861d
commit
c2de9b08d6
7 changed files with 14 additions and 9 deletions
|
|
@ -14,18 +14,23 @@ ui = mcrfpy.sceneUI("pytest")
|
|||
|
||||
# Frame
|
||||
f = mcrfpy.Frame(25, 19, 462, 346, fill_color=(255, 92, 92))
|
||||
print("Frame alive")
|
||||
# fill (LinkedColor / Color): f.fill_color
|
||||
# outline (LinkedColor / Color): f.outline_color
|
||||
# pos (LinkedVector / Vector): f.pos
|
||||
# size (LinkedVector / Vector): f.size
|
||||
|
||||
# Caption
|
||||
c = mcrfpy.Caption(512+25, 19, "Hi.", font)
|
||||
print("Caption attempt w/ fill_color:")
|
||||
#c = mcrfpy.Caption(512+25, 19, "Hi.", font)
|
||||
#c = mcrfpy.Caption(512+25, 19, "Hi.", font, fill_color=(255, 128, 128))
|
||||
c = mcrfpy.Caption(512+25, 19, "Hi.", font, fill_color=mcrfpy.Color(255, 128, 128), outline_color=(128, 255, 128))
|
||||
print("Caption alive")
|
||||
# fill (LinkedColor / Color): c.fill_color
|
||||
#color_val = c.fill_color
|
||||
print(c.fill_color)
|
||||
print("Set a fill color")
|
||||
c.fill_color = (255, 255, 255)
|
||||
#print("Set a fill color")
|
||||
#c.fill_color = (255, 255, 255)
|
||||
print("Lol, did it segfault?")
|
||||
# outline (LinkedColor / Color): c.outline_color
|
||||
# font (Font): c.font
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue