Commit Graph

418 Commits

Author SHA1 Message Date
Laurent alonso
baa0bf81c4 Scenario Editor: display town's name when selecting a town... 2022-06-30 01:10:46 -04:00
Laurent alonso
2ad286b12d Scenario Editor: try improve the scenario events' edition... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
ea8cb51c93 minimap: try to correct an odd problem with sfml,
+ minor cleaning...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
da703c1159 Scenario Editor: continue to regroup some static variables in a class,
gfxsheets.hpp: do not remove party sheet when we enter a scenario,
+ minor cleanings...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
386632131c ScenEditor: create a class to store some static buttons and scrollbars
+ begin to use it, to be continued...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
8efa23debb boe.actions.cpp: correct a mistake when using arrows to move target
Scenario Editor: some cleaning + reset the terrain center correctly if it is
  outside the terrain bounds...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
1fe4875448 scen.actions.cpp: correct some mistakes + try to do some cleaning
scen.graphics.cpp: check terrain's cen_x, if outside reset the cen_? to the terrain's center
2022-06-30 01:10:46 -04:00
ALONSO Laurent
9c14a7fd80 scen.graphics.cpp: correct the coordinate display in zoom's mode... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
e080efbee0 add some include to make the compilation possible on linux,
+ add a cmake project to "simplify" to linux compilation.
2022-06-30 01:10:46 -04:00
ALONSO Laurent
8e2cdca1f8 try to clean a little the code... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
2106f45840 Scenario Editor: try to correct a problem when displaying terrain in zoom out mode,
Mac: add hack to avoid crashing when receiving an apple event,
+ various minor modifications
2022-06-30 01:10:46 -04:00
ALONSO Laurent
66ad6bdefa continue to protect vector against bad index + simplify some code... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
f3a96391b5 vector2d: try to protect the access against bad index, to be improved...
+ details rewriting
2022-06-30 01:10:46 -04:00
ALONSO Laurent
31c5a24e81 continue to add methods to check bounds, to be continued,
+ try to do not add empty strings in encounter message
+ minimap: try to remove flickering on OsX
+ correct cScenario::get_ter_from_ground
2022-06-30 01:10:46 -04:00
ALONSO Laurent
47fd08904f all: try to protect access to journal_strs and sign_locs against bad index... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
a51ba34650 add methods get_special_string to check access bounds of spec_strs... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
0c269c420c add methods get_shop to check access bounds,
+ Scenario Editor: display all talk messages
2022-06-30 01:10:46 -04:00
ALONSO Laurent
f997771dbe all[quests]: add a function to protect access from bad index.. 2022-06-30 01:10:46 -04:00
ALONSO Laurent
15db88e723 all[special_items]: add a function to protect access from bad index... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
a7a24e7e7a cPict: begin to differentiate the picture type and the dialog type
+ begin to merge the drawing functions, to be continued
all: try to use the pict.cpp functions to draw items..
2022-06-30 01:10:46 -04:00
ALONSO Laurent
3451c70fec all: use the function get_item which checks bounds... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
f52c227516 Scenario editor: add a function get_item to check bounds... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
0e44c89286 game: continue to use get_terrain to retrieve the terrain + use the same
functions to display the terrain picture with the scene editor...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
1b7dcaab1f Scenerio Editor: try to allow to edit scenario with bogus terrain type or
bogus terrain picture nums.
2022-06-30 01:10:46 -04:00
ALONSO Laurent
e4d220799e graphics: add a picture to store/show some errors,
Scene Editor: try to do not end with a fatal errors if a terrain's picture or
  map picture does not exist, to be improved...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
dbe6482568 Scenario: use cPictNum to retrieve the ter_map pictures... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
cabe7beff1 Scenario editor: try to simplify the code used to draw terrain texture +
use cPictNum to retrieve the big terrain pictures...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
7e189847ee widgets/pict.hpp: add a class cPictNum to store a picture number and its type,
game[legacy]: only prevent walking on portail in combat mode
Scenario Editor: begin to use cPictNum to avoid crashing when displaying some
  terrain animations, to be continued...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
17ba320d65 boe.newgraph.cpp: try to improve the lighting,
pc.main.cpp,scen.main.cpp: do not change the mac icon
boe.actions.cpp: correct a recent problem with new escape keyevents
+ minors cleaning
2022-06-30 01:10:45 -04:00
ALONSO Laurent
f1a04987c0 Scenario Editor: add left/right arrows when editing town messages
+ fix a problem when trying to load a bad scenario...
2022-06-30 01:10:45 -04:00
ALONSO Laurent
3c5f828274 Scenario Editor: allow to edit (all) scenario timers... 2022-06-30 01:10:45 -04:00
ALONSO Laurent
cd6eebdebe Allow UI scaling of 4 in Scenario Editor
dialog.cpp[cleaning]: remove unused code
2022-06-30 01:10:45 -04:00
ALONSO Laurent
f3cf88601c try to make Scene Editor less CPU hungry... 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
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
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
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
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
Laurent Alonso(fr)
34d3431e49 Boe Character/Scenario Editor[OsX]: retrieve also PlaySound in the preferences... 2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
31b433d6c7 BoE Scenario Editor[OSX]: add preferences to define UI scaling... 2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
6c904f3483 editors, OSX and menu[hack]: try to avoid crashes by postponing the creation of dialogs in the main loop. 2022-06-30 01:08:47 -04:00
3ba6266cd4 Fix editors launching in the top left corner of the screen 2020-02-23 23:29:44 -05:00
7b93726383 Replace 4-character constants with enums
This covers only the places where they were used to indicate
a preset selection in constructors.

The usage in qdpict where they're actually passed to the Resource Manager,
as well as the 4-character constants representing file types and creator
codes, are still present.
2020-02-21 00:16:58 -05:00