d
This commit is contained in:
@@ -6,7 +6,8 @@ class desktop_Platform:
|
|||||||
self.cell = 0
|
self.cell = 0
|
||||||
self.sprites = arcade.SpriteList()
|
self.sprites = arcade.SpriteList()
|
||||||
self.textures = []
|
self.textures = []
|
||||||
self.title = ""
|
self.windowAntialiasing = False
|
||||||
self.windowBackgroundColor = arcade.color.WHITE
|
self.windowBackgroundColor = arcade.color.WHITE
|
||||||
self.windowHeight = 0
|
self.windowHeight = 0
|
||||||
|
self.windowTitle = ""
|
||||||
self.windowWidth = 0
|
self.windowWidth = 0
|
||||||
|
|||||||
31
v5/gui.py
31
v5/gui.py
@@ -2,6 +2,37 @@ from memory_Context import *
|
|||||||
from gui_TextureDescription import *
|
from gui_TextureDescription import *
|
||||||
from llm import *
|
from llm import *
|
||||||
|
|
||||||
|
# Generate tile position
|
||||||
|
#
|
||||||
|
# Conditions:
|
||||||
|
# 1.
|
||||||
|
@llm_by_value
|
||||||
|
def gui_generateTilePositions(
|
||||||
|
c: memory_Context
|
||||||
|
) -> memory_Context:
|
||||||
|
if (
|
||||||
|
c.recentField == "windowHeight" or
|
||||||
|
c.recentField == "windowWidth"
|
||||||
|
):
|
||||||
|
tds: list[gui_TextureDescription] = []
|
||||||
|
for id in range(0, c.tileImageCount):
|
||||||
|
td = gui_createTextureDescription()
|
||||||
|
td.fileName = c.tileImage
|
||||||
|
td.height = c.tileImageHeight
|
||||||
|
td.width = c.tileImageWidth
|
||||||
|
td.x = id * c.tileImageWidth
|
||||||
|
td.y = 0
|
||||||
|
tds.append(td)
|
||||||
|
#}
|
||||||
|
c.textureDescriptions = tds
|
||||||
|
c.recentField = "textureDescriptions"
|
||||||
|
return c
|
||||||
|
#}
|
||||||
|
|
||||||
|
c.recentField = "none"
|
||||||
|
return c
|
||||||
|
#}
|
||||||
|
|
||||||
# Generate textures descriptions
|
# Generate textures descriptions
|
||||||
#
|
#
|
||||||
# Conditions:
|
# Conditions:
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ class memory_Context:
|
|||||||
self.tileImageCount = 0
|
self.tileImageCount = 0
|
||||||
self.tileImageHeight = 0
|
self.tileImageHeight = 0
|
||||||
self.tileImageWidth = 0
|
self.tileImageWidth = 0
|
||||||
|
self.tilePositions = []
|
||||||
self.victory = False
|
self.victory = False
|
||||||
|
|
||||||
def field(self, fieldName):
|
def field(self, fieldName):
|
||||||
|
|||||||
Reference in New Issue
Block a user