76 |
RenderInfo info1, RenderInfo info2) { |
RenderInfo info1, RenderInfo info2) { |
77 |
throw new Error("Not implemented"); |
throw new Error("Not implemented"); |
78 |
} |
} |
79 |
|
|
80 |
|
private Color accursedColor = null; |
81 |
|
private Key accursed = null; |
82 |
|
public void colorize(Key key, Color color) { |
83 |
|
accursed = key; |
84 |
|
accursedColor = color; |
85 |
|
} |
86 |
|
|
87 |
public int putGL(VobScene vs, int into) { |
public int putGL(VobScene vs, int into) { |
88 |
vs.put(bg, into); |
vs.put(bg, into); |
100 |
|
|
101 |
for (int i=0; i<vobs.size(); i++) { |
for (int i=0; i<vobs.size(); i++) { |
102 |
TextVob item = (TextVob)vobs.get(i); |
TextVob item = (TextVob)vobs.get(i); |
103 |
|
if (keys.get(i) == accursed) { |
104 |
|
vobs.remove(i); |
105 |
|
vobs.add(i, new TextVob(style, item.text, false, accursedColor)); |
106 |
|
item = (TextVob)vobs.get(i); |
107 |
|
} |
108 |
|
|
109 |
if (dbg) p("d:"+item.getDepth(scale)+"w:"+item.getWidth(scale)+"h:"+item.getHeight(scale)); |
if (dbg) p("d:"+item.getDepth(scale)+"w:"+item.getWidth(scale)+"h:"+item.getHeight(scale)); |
110 |
|
|