Skip to content

Commit

Permalink
Added editing of available and project components and saving of compo…
Browse files Browse the repository at this point in the history
…nents, systems, actions and behaviours.
  • Loading branch information
Beliar83 committed May 13, 2015
1 parent 5d53e4e commit a2495cd
Show file tree
Hide file tree
Showing 6 changed files with 582 additions and 76 deletions.
33 changes: 0 additions & 33 deletions combined.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +0,0 @@
Components:
Agent: fife_rpg.components.agent
MoveAgent: fife_rpg.components.move_agent
CharacterStatistics: fife_rpg.components.character_statistics
Containable: fife_rpg.components.containable
Container: fife_rpg.components.container
Description: fife_rpg.components.description
Dialogue: fife_rpg.components.dialogue
Equip: fife_rpg.components.equip
Equipable: fife_rpg.components.equipable
FifeAgent: fife_rpg.components.fifeagent
General: fife_rpg.components.general
Lockable: fife_rpg.components.lockable
RPGEquip: fife_rpg.components.equip
Readable: fife_rpg.components.readable
Moving: fife_rpg.components.moving
Systems:
CharacterStatisticSystem: fife_rpg.systems.character_statistics
GameVariables: fife_rpg.systems.game_variables
ScriptingSystem: fife_rpg.systems.scriptingsystem
Actions:
MoveAgent: fife_rpg.actions.move_agent
Close: fife_rpg.actions.close
Lock: fife_rpg.actions.lock
Look: fife_rpg.actions.look
Open: fife_rpg.actions.open
PickUp: fife_rpg.actions.pick_up
Read: fife_rpg.actions.read
Unlock: fife_rpg.actions.unlock
MoveCamera: fife_rpg.actions.move_camera
SetGlobalLight: fife_rpg.actions.set_global_light
Behaviours:
Base: fife_rpg.behaviours.base
9 changes: 9 additions & 0 deletions editor/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,12 @@ def ask_create_path(path):
os.makedirs(path)
return True
return False


def clear_text(text):
"""Remove special tags from a text"""
lindex = text.lower().find("[colour=")
if lindex >= 0:
rindex = text.find("]", lindex)
text = text[:lindex] + text[rindex + 1:]
return text
Loading

0 comments on commit a2495cd

Please sign in to comment.