Commit Graph

2070 Commits

Author SHA1 Message Date
ALONSO Laurent
afc17ba754 scenario.cpp: check item types before adding a default description,
party.cpp: minor cleaninggs...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
31124a46b6 game[enter/exit town]: try to clean a little the code... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
c709d6ec6f game:
+ draw terrains: try to improve the display of the fields,
+ try to avoid flikering in the text messages' zone
+ get items: correct the bottom button hide/show
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
0e5f207b67 party_sheet: try to do create vertically flipped party sheet... 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
89d94b2873 fileio_party.cpp: do not flip the party sheet vertically for no unknown reason 2022-06-30 01:10:46 -04:00
ALONSO Laurent
61d206ae84 try to improve the sheets conversion when the width is less than 280
special_parse.cpp: simplify the code
2022-06-30 01:10:46 -04:00
ALONSO Laurent
f31f5947e4 continue to simplify the code... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
a253698aaa universe: try to simplify the code... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
5ca9255e7f game: try to not delete the party custom sheet when a scenario is downloaded
+ legacy mode: force_wall seems to be able to replace quickfire
+ correct a mistake...
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
db5dd1e273 remove dupplicated 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
c20878ecd6 game[mac]: try to make openFile's apple event works... 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
282c640173 cPict: continue to differentiate the picture type and the dialog type
and to merge the drawing functions, to be continued
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
8951d0efc1 game: begin to use the get_terrain method, ... 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
fdb2b0e0d8 dialog: do not open dialog centered at 0x0
Character Editor[skill]: do not always display help, there is an help button...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
8f2139ea35 boe.infodlg.cpp: transform a showError in add_string_to_buf. 2022-06-30 01:10:46 -04:00
da683b1556 Update IRC channel link 2022-06-30 01:10:45 -04:00
ALONSO Laurent
33661638d2 correct a mistake
+ add a repository to regroup the automatic conversion of legacy files
  ( to compare the differences, ... )
2022-06-30 01:10:45 -04:00
ALONSO Laurent
2206f5e181 game: try to correct start scenario
+ right trim strings when loading legacy scenarios...
2022-06-30 01:10:45 -04:00
ALONSO Laurent
1a9df85d0b legacy scenario: try to add some classic descriptions to the scenario items
legacy[combat,special]: allow to move on spot, ie. old Blades of Exile
  only prevent to move to terrain with pict=406
boe.minimap.cpp: fix a scrolling problem in town
special.cpp: do not save nop special
2022-06-30 01:10:45 -04:00
ALONSO Laurent
c229ac6543 clang analyze: try to correct some warnings, mainly unused variables... 2022-06-30 01:10:45 -04:00
ALONSO Laurent
1f9a54de6a game: try to fix some details:
- always add help node in talk mode,
- in shop/talk mode do no try to find a combat frame, ...
- add a framerate_limiters in various loops of events,
- try to improve the minimap update.
2022-06-30 01:10:45 -04:00
ALONSO Laurent
a92a4b34d6 create files boe.minimap.*pp to regroup the minimap codes
+ try to improve this code but this is still not perfect :-~
2022-06-30 01:10:45 -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
4885ead643 simulacrum: try to make the selection's work 2022-06-30 01:10:45 -04:00