• R/O
  • SSH
  • HTTPS

rgss-lib: Commit


Commit MetaInfo

Revisão456 (tree)
Hora2012-08-02 23:33:38
Autoryf30

Mensagem de Log

グラマー作成中

Mudança Sumário

Diff

--- trunk/eclipse/projects/jp.sf.rgsslib.tools.rpgtkool.event.editor/src/jp/sf/rgsslib/tools/rpgtkool/event/editor/generator/EventDSLUtils.java (revision 455)
+++ trunk/eclipse/projects/jp.sf.rgsslib.tools.rpgtkool.event.editor/src/jp/sf/rgsslib/tools/rpgtkool/event/editor/generator/EventDSLUtils.java (revision 456)
@@ -18,9 +18,13 @@
1818 private static final Map<String, Integer> MOVE_FREQUENCY;
1919 private static final Map<String, Integer> MOVE_SPEED;
2020 private static final Map<String, Integer> MOVE_TYPE;
21+ private static final Map<String, Integer> EVENT_MESSAGE_BACKGROUND;
22+ private static final Map<String, Integer> EVENT_MESSAGE_POSITION;
2123
2224 private static final int MOVE_FREQUENCY_DEFAULT = 3;
23- private static final int MOVE_SPEED_DEFAULT = 4;
25+ private static final int MOVE_SPEED_DEFAULT = 4;
26+ private static final int EVENT_MESSAGE_BACKGROUND_DEFAULT = 0;
27+ private static final int EVENT_MESSAGE_POSITION_DEFAULT = 0;
2428
2529 static {
2630 DIRECTION = new HashMap<String, Integer>();
@@ -61,6 +65,16 @@
6165 MOVE_TYPE.put("ランダム", 1);
6266 MOVE_TYPE.put("近づく", 2);
6367 MOVE_TYPE.put("カスタム", 3);
68+
69+ EVENT_MESSAGE_BACKGROUND = new HashMap<String, Integer>();
70+ EVENT_MESSAGE_BACKGROUND.put("通常", 0);
71+ EVENT_MESSAGE_BACKGROUND.put("暗い", 1);
72+ EVENT_MESSAGE_BACKGROUND.put("透明", 2);
73+
74+ EVENT_MESSAGE_POSITION = new HashMap<String, Integer>();
75+ EVENT_MESSAGE_POSITION.put("上", 0);
76+ EVENT_MESSAGE_POSITION.put("中", 1);
77+ EVENT_MESSAGE_POSITION.put("下", 2);
6478 }
6579
6680 int directionNum(String dir) {
@@ -90,7 +104,19 @@
90104 int moveTypeNum(MoveType it) {
91105 return MOVE_TYPE.get(it.getValue());
92106 }
107+
108+ int backgroundNum(String it) {
109+ if (it == null)
110+ return EVENT_MESSAGE_BACKGROUND_DEFAULT;
111+ return EVENT_MESSAGE_BACKGROUND.get(it);
112+ }
93113
114+ int positionNum(String it) {
115+ if (it == null)
116+ return EVENT_MESSAGE_POSITION_DEFAULT;
117+ return EVENT_MESSAGE_POSITION.get(it);
118+ }
119+
94120 boolean walkAnimeValue(String str) {
95121 return "歩行アニメあり".equals(str);
96122 }
Show on old repository browser