dashcode 1.2.7__tar.gz → 1.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dashcode-1.2.7 → dashcode-1.2.8}/PKG-INFO +1 -1
- {dashcode-1.2.7 → dashcode-1.2.8}/dashcode/core.py +8 -3
- {dashcode-1.2.7 → dashcode-1.2.8}/dashcode.egg-info/PKG-INFO +1 -1
- {dashcode-1.2.7 → dashcode-1.2.8}/setup.py +1 -1
- {dashcode-1.2.7 → dashcode-1.2.8}/README.md +0 -0
- {dashcode-1.2.7 → dashcode-1.2.8}/dashcode/__init__.py +0 -0
- {dashcode-1.2.7 → dashcode-1.2.8}/dashcode.egg-info/SOURCES.txt +0 -0
- {dashcode-1.2.7 → dashcode-1.2.8}/dashcode.egg-info/dependency_links.txt +0 -0
- {dashcode-1.2.7 → dashcode-1.2.8}/dashcode.egg-info/top_level.txt +0 -0
- {dashcode-1.2.7 → dashcode-1.2.8}/setup.cfg +0 -0
|
@@ -121,6 +121,8 @@ class Dashcode:
|
|
|
121
121
|
value = data[i + 1]
|
|
122
122
|
obj_dict[key] = value
|
|
123
123
|
return obj_dict
|
|
124
|
+
def removeobject(self, obj:str):
|
|
125
|
+
self.objects.remove(obj)
|
|
124
126
|
def editobject(self, obj:str, params:dict):
|
|
125
127
|
parsed = self.parse_object_string(obj)
|
|
126
128
|
#print(parsed)
|
|
@@ -134,15 +136,18 @@ class Dashcode:
|
|
|
134
136
|
if not parsed.get(self.params.get(i)) and self.params.get(i):
|
|
135
137
|
newparams[str(self.params.get(i))] = str(v)
|
|
136
138
|
elif i in ["X","Y"]:
|
|
137
|
-
print(i,v)
|
|
139
|
+
#print(i,v)
|
|
138
140
|
newparams[str(self.params.get(i))] = str(v*30)
|
|
139
141
|
else:
|
|
140
142
|
newparams[str(i)] = str(v)
|
|
141
143
|
new_obj = ""
|
|
142
144
|
for i,v in newparams.items():
|
|
143
145
|
new_obj += f"{i},{v},"
|
|
144
|
-
print(newparams)
|
|
145
|
-
print(new_obj)
|
|
146
|
+
#print(newparams)
|
|
147
|
+
#print(new_obj)
|
|
148
|
+
self.removeobject(obj)
|
|
149
|
+
self.objects.append(new_obj)
|
|
150
|
+
return new_obj
|
|
146
151
|
def addprefab(self, obj: str, params: dict, prefab: str):
|
|
147
152
|
fab = self.prefabs.get(prefab)
|
|
148
153
|
if not fab:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|