~ubuntu-branches/ubuntu/trusty/rlvm/trusty

« back to all changes in this revision

Viewing changes to src/LongOperations/SelectLongOperation.hpp

  • Committer: Package Import Robot
  • Author(s): Ying-Chun Liu (PaulLiu)
  • Date: 2013-11-02 02:57:13 UTC
  • mfrom: (10.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20131102025713-yzg31grxr8i7xerh
Tags: 0.13-1
* New upstream release
  - rlvm will now warn on startup when it detects Japanese save data, but
    English patched game files, and offer to reset the save data.
  - Much better support for Little Busters. Most graphical glitches during
    the Little Busters Refrain have been fixed.
  - TCC tone curve effects have been reverse-engineered and implemented
    (thanks to lurkmoar)
  - Sepia scenes (and other graphical filters) should look much better.
  - Simple shake commands implemented (fancy per-layer shaking still
    unimplemented).
  - Make animations smooth: data should be uploaded to the graphics card
    before an animation loop starts, not while the animation loop is
    running.
  - Fixes finding system fonts on Linux
  - Thanks to Elliot Glaysher <glaysher@umich.edu>
* Remove upstreamed patches:
  - debian/patches/002_675426ad62bccf1de10b0ae31dd46331ec47aacb.patch
  - debian/patches/003_5dafabf5448635c4d4526d6e35ea7ec664a27261.patch
  - debian/patches/004_boost-drop-mt.patch
  - debian/patches/005_missing-include.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
    // What to print as the option.
58
58
    std::string str;
 
59
 
 
60
    // Whether this item is selectable.
 
61
    bool enabled;
 
62
 
 
63
    // What color this should be.
 
64
    bool use_colour;
 
65
    int colour_index;
59
66
  };
60
67
 
61
68
  SelectLongOperation(RLMachine& machine,
127
134
    // The id to return when this button is clicked.
128
135
    int id;
129
136
 
 
137
    // Whether the button is enabled.
 
138
    bool enabled;
 
139
 
130
140
    // Text representations to blit to the screen.
131
141
    boost::shared_ptr<Surface> default_surface;
132
142
    boost::shared_ptr<Surface> select_surface;
158
168
  // certain states.
159
169
  int normal_frame_;
160
170
  int select_frame_;
 
171
  int push_frame_;
 
172
  int dontsel_frame_;
 
173
 
 
174
  // Offsets from our base position which correspond to the different frames.
 
175
  Point normal_frame_offset_;
 
176
  Point select_frame_offset_;
 
177
  Point push_frame_offset_;
 
178
  Point dontsel_frame_offset_;
 
179
 
 
180
  // Whether the left mouse button is currently pressed.
 
181
  bool mouse_down_;
161
182
 
162
183
  // Surface loaded from #SELBTN.xxx.NAME.
163
 
  boost::shared_ptr<Surface> name_surface_;
 
184
  boost::shared_ptr<const Surface> name_surface_;
164
185
 
165
186
  // Surface loaded from #SELBTN.xxx.BACK.
166
 
  boost::shared_ptr<Surface> back_surface_;
 
187
  boost::shared_ptr<const Surface> back_surface_;
167
188
 
168
189
  std::vector<ButtonOption> buttons_;
169
190
};