mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-03 10:25:46 -04:00
self.wip_textures has work-in-progress texture definitions
This commit is contained in:
parent
191412e840
commit
741e627245
1 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,7 @@ class HellowWorldGTK:
|
||||||
def parse_texture_file(self,fname):
|
def parse_texture_file(self,fname):
|
||||||
texture1 = file(fname, "r").read()
|
texture1 = file(fname, "r").read()
|
||||||
self.textures = {}
|
self.textures = {}
|
||||||
|
self.wip_textures = {}
|
||||||
textures = self.textures
|
textures = self.textures
|
||||||
current = None
|
current = None
|
||||||
for line in texture1.split("\n"):
|
for line in texture1.split("\n"):
|
||||||
|
@ -34,6 +35,7 @@ class HellowWorldGTK:
|
||||||
else:
|
else:
|
||||||
line = line.split()
|
line = line.split()
|
||||||
current = Texture(line[0],line[1],line[2])
|
current = Texture(line[0],line[1],line[2])
|
||||||
|
self.wip_textures[line[0]] = Texture(line[0],line[1],line[2])
|
||||||
textures[line[0]] = current
|
textures[line[0]] = current
|
||||||
|
|
||||||
def lhs_callback(self, treeview):
|
def lhs_callback(self, treeview):
|
||||||
|
@ -45,9 +47,8 @@ class HellowWorldGTK:
|
||||||
def rhs_drag_data_get(self,widget,ctx,selection,targettype,eventtime):
|
def rhs_drag_data_get(self,widget,ctx,selection,targettype,eventtime):
|
||||||
print "ZOMG"
|
print "ZOMG"
|
||||||
|
|
||||||
# patchselected on rhs
|
# patch selected on rhs
|
||||||
def rhs_select_cb(self, rhs, path, view_column):
|
def rhs_select_cb(self, rhs, path, view_column):
|
||||||
print "ZOMGLOL"
|
|
||||||
model = rhs.get_model()
|
model = rhs.get_model()
|
||||||
row = model[path[0]][0]
|
row = model[path[0]][0]
|
||||||
selected_patches = self.wTree.get_widget("selected_patches")
|
selected_patches = self.wTree.get_widget("selected_patches")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue