ALONSO Laurent
0404bc7ba4
try to make Character Editor less CPU hungry...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
ce26cecd73
legacy: disable all spell_freebie in legacy game...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
c752c9a3d9
try to make the dialogs less CPU hungry...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
710d80dbb0
alchemy: correct problems when using the new code...
...
legacy[unlock/dispel_barrier]: do not use freebie mode for items, ...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
d1af077e3e
do not forget to call advance_time of calling handle_space in combat mode...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
57c03dfc82
alchemy: try to add some information to the basic dialog (to be improved...)
2022-06-30 01:10:44 -04:00
ALONSO Laurent
896e6c699b
try to make do alchemy more user friendly...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
94b65859cc
fix: we can not use arrows in MODE_TOWN_TARGET
2022-06-30 01:10:44 -04:00
ALONSO Laurent
6ec906ccb1
special item: use item_btn_use instead of item_btn_drop
2022-06-30 01:10:44 -04:00
ALONSO Laurent
1e5474a53c
boe.specials.cpp[change terrain]: avoid redrawing the minimap n*k times...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
9db12b2b63
boe.actions.cpp: allow more escaping in the first phase of spell/missile/throw mode
...
+ allow to use arrows in scrollable mode...
2022-06-30 01:10:44 -04:00
C.W. Betts
4a25838176
Quiet a warning.
2022-06-30 01:10:44 -04:00
C.W. Betts
1ce5edaa91
.mm: try to simplify load of .mm files
2022-06-30 01:10:44 -04:00
C.W. Betts
cd39a11f93
Mark file_to_load in load_party as const reference.
2022-06-30 01:10:44 -04:00
C.W. Betts
4fbc210d45
Only be able to select one file when opening.
2022-06-30 01:10:44 -04:00
ALONSO Laurent
42d64cc733
pick race dialog: compute xp correctly...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
3dd3d3c1da
dialog pick-race-abil: print pc's name + add left/right arrows
2022-06-30 01:10:44 -04:00
ALONSO Laurent
d8ab170111
boe.actions.cpp: allow escaping the first phase of look/talking mode
...
+ correction of minor details...
2022-06-30 01:10:44 -04:00
C.W. Betts
7ae29eeea3
remove some useless retain [part of commit 3af55e7d352e86e2bc5043f4cc6daa596ff0a9ac]
2022-06-30 01:10:44 -04:00
C.W. Betts
77d5080435
Minor fixes.
2022-06-30 01:10:44 -04:00
C.W. Betts
b2c2ad8475
More migration to const & in legacy importing methods.
2022-06-30 01:10:44 -04:00
C.W. Betts
976794e8b6
Mark some import_legacy methods as taking const &.
...
+ replace when possible boost::lexical_cast<std::string> by std::to_string
2022-06-30 01:10:44 -04:00
Morel Berenger
ceb90b9719
render_image.cpp: improve gl error messages by adding filename
2022-06-30 01:10:44 -04:00
ALONSO Laurent
69ff3df7d0
button: try to make tiny buttons work...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
296ac67e71
game: try to prevent missile animation to appear outside the terrain...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
e8e3b13c7c
porting.{hc}pp: add a namespace,
...
fileio_party.cpp: try to simplify the code which read legacy save,
boe.specials.cpp: correct a problem when unlocking rectangles...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
3d1faba4b2
porting.cpp[legacy]: import a legacy party correctly,
...
+ do not import empty timer...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
0c277ecefd
boe.dlgutil.cpp: do not empty magic shop unnecessarily, to be improved...
...
porting.cpp[legacy]: try to always convert RECT to mac Rect when reading a Windows
scenario
note: this may be succeptible to break the loading of some legacy save, but there
are already broken....
2022-06-30 01:10:44 -04:00
ALONSO Laurent
69e1267ee7
boe.actions.cpp: try to make key work even when the talk ends
...
boe.town.cpp: try to simplify the code when monsters are loaded in a town...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
991b0494ef
dialog: try to avoid creating dialogs with enormeous width...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
7d34d2a49c
talk: try to make "Go Back" and the keys work again,
...
shopping: try to make work again,
+ minor corrections...
2022-06-30 01:10:44 -04:00
ALONSO Laurent
6c753ee0f0
[calref/cboe]: Split out cContainer, cLed, and cLedGroup into their own files
2022-06-30 01:10:44 -04:00
ALONSO Laurent
be520e9acc
[calref/cboe]: Allow automatically calculating both the width and height
...
of a text label
This fixes welcome dialog links triggering when you hit OK in the right place
2022-06-30 01:08:48 -04:00
ALONSO Laurent
418e242fda
[calref/cboe]: Links in the welcome dialog are now clickable
2022-06-30 01:08:48 -04:00
ALONSO Laurent
4707fd7532
[calref/cboe]: Implement automatic height calculation for text labels
2022-06-30 01:08:48 -04:00
ALONSO Laurent
62282b6cbf
[calref/cboe]: Adjust the hilited string rendering to be less reliant on
...
mysterious magic numbers
It still adds a mysterious offset to all text, but the returned rectns are now perfectly aligned to redraw the hilited string.
2022-06-30 01:08:48 -04:00
ALONSO Laurent
fef06cadec
legacy[save]: try to improve the loading of a save...
2022-06-30 01:08:48 -04:00
ALONSO Laurent
afda3a09f5
save[legacy]: try to solve many problem
...
+ force monst.which_town to be set ( to fix a problem when saving context)
2022-06-30 01:08:48 -04:00
ALONSO Laurent
a1e0158c56
legacy: try to reconnect odd text response's data...
2022-06-30 01:08:48 -04:00
Laurent alonso
6ff481df11
journal: try to delete correctly the talking notes
2022-06-30 01:08:48 -04:00
Laurent alonso
199dc92a88
check that picture id are correct...
2022-06-30 01:08:48 -04:00
Laurent alonso
3811e5b1c8
cboe: try to reset end_scenario to false correctly...
2022-06-30 01:08:48 -04:00
Laurent alonso
1bf43ee01e
special.cpp: retrieve correctly allow/deny enter in legacy scenario,
...
universe.cpp: correct a memory problem...
2022-06-30 01:08:48 -04:00
Laurent alonso
303674da10
boe.infodlg.cpp: try to correct a problem when displaying notes,
...
gfxsheets.cpp: try to make the scenario's graphic resolution independent...
2022-06-30 01:08:48 -04:00
Laurent alonso
1daca1cf55
graphics:
...
- use the UI scaling to define the size of the renderer textures,
- allow talk_gworld to be rescaled,
- allow to read rescaled graphics in the scenario in cboe, assuming
that there are scaled similarly in X and Y. The scenario editor is
also able to display them but its code will need to be modified to
make it able to edit them...
2022-06-30 01:08:48 -04:00
Laurent alonso
92eee35b66
graphics: finish to change code to store some images as Texture, ...
2022-06-30 01:08:48 -04:00
Laurent alonso
a407d61f4c
graphics: continue to change code to store some images as Texture
...
+ replace graf_pos and graf_pos_ref by Texture_ref
+ correct cCustomGraphics::copy_graphic
2022-06-30 01:08:48 -04:00
ALONSO Laurent
fcc2db7a5e
graphics: continue to change code to store some images as Texture...
2022-06-30 01:08:48 -04:00
Laurent alonso
c31bb2d0ff
graphics: continue to rewrite code to be more simple ;
...
retrieve modifications to allow to load some graphics with different
resolutions: actionhelp, bigscenpics, fighthelp, invenhelp, outhelp,
scenpics, stathelp, townhelp, dlogpics, dlogscrollled, dlogscrollwh,
edbuttons, edsplash, pcedtitle.
2022-06-30 01:08:48 -04:00
Laurent alonso
e625927a29
graphics: begin to rewrite code to be more simple: - add
...
a struct Texture to store a sf::Texture and the application's texture sizes,
- add a texture resources manager and retrieve codes to allow - if needed,
rescaling startsplash and spidlogo at startup - loading some graphics with
different resolutions: buttons, inventory, pcedbuttons, statarea,
startanim, startbut, startup, terscreen, textbar, transcript can be
used to load high resolution pictures.
Note: currently, render_image and res_image are a mess as Texture and sf:Texture classes
cohabit :-~
2022-06-30 01:08:48 -04:00