gravestench
468f5682ae
Merge branch 'd2ds1_refactor' into d2ds1_refactor_wip
2021-03-24 11:55:34 -07:00
gucio321
6f41387e30
Ds1 refactor - tests ( #10 )
...
* ds1 refactor test: example data
* added loader check
* ds1 refactor: fixed bug, with loading substitutions; added descriptive error message in engine.go:118 and changed Logger.Error with Logger.Fatal
* ds1 refactor: fixed loading bug
* ds1 refactor: fixed bug when walls wasn't rendered (now we can see only walls :-)
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-03-24 10:10:36 -07:00
gravestench
5dfca5e9f3
WIP
2021-03-24 10:10:36 -07:00
gravestench
87d0803a4f
d2ds1.FloorShadow is now private
2021-03-24 10:10:36 -07:00
gucio321
194c1e467c
unit tests for ds1 ( #4 )
...
* ds1 refactor: added test fore some methods; put tests in right order
* ds1 refactor: unit tests for all methods
* ds1 refactor: fixed build errors
* ds1 refactor: lintfix
* ds1 refactor: fixed bug with SetWidth, SetHeight methods
* ds1 refactor: rename tile_record.go -> tile.go
* ds1 refactor: unit test for SetTiles
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-03-24 10:10:36 -07:00
gravestench
5e0e51d5e2
Refactoring d2ds1
...
* Adding setters/getters so that state management can be maintained
internally when the ds1 struct is altered
* Adding unit tests for DS1
2021-03-24 10:10:36 -07:00
Tim Sarbin
236a091997
Merge pull request #1098 from willroberts/windows-path-support
...
Use filepath instead of path for Windows support
2021-03-24 08:55:20 -04:00
Will Roberts
d1c1e8bd26
No forward slashes in filepath.Join to satisfy golangci-lint
2021-03-23 23:30:00 -04:00
Will Roberts
b18a70cef9
Updates more instances of path->filepath
2021-03-23 23:18:19 -04:00
Will Roberts
222b916002
Use filepath instead of path for Windows support
2021-03-23 23:08:32 -04:00
Panagiotis Georgiadis
f8881ed832
Use the same MpqLoadOrder cross-platform
...
Fixes #1095
2021-03-24 04:02:47 +01:00
gucio321
ab14168f50
Merge branch 'master' into anim-data-encoder
2021-02-26 21:04:14 +01:00
M. Sz
00e26fb862
animdata: the game now uses animation data manager from d2fileformats/d2animdata (instead of d2data/animation_data.go)
2021-02-26 11:56:49 +01:00
M. Sz
c933e4b891
fixed build error & tbl: removed version check (because of error screen; we don't need to check version)
2021-02-25 14:11:19 +01:00
M. Sz
2859eae91c
Revert "data encoding: tbl"
...
This reverts commit 5a0571763e
.
2021-02-25 10:02:10 +01:00
gravestench
84d510fe16
d2ds1.FloorShadow is now private
2021-02-17 10:16:10 -08:00
gucio321
99908016be
unit tests for ds1 ( #4 )
...
* ds1 refactor: added test fore some methods; put tests in right order
* ds1 refactor: unit tests for all methods
* ds1 refactor: fixed build errors
* ds1 refactor: lintfix
* ds1 refactor: fixed bug with SetWidth, SetHeight methods
* ds1 refactor: rename tile_record.go -> tile.go
* ds1 refactor: unit test for SetTiles
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-02-17 10:04:44 -08:00
gravestench
ec47f16cc4
Refactoring d2ds1
...
* Adding setters/getters so that state management can be maintained
internally when the ds1 struct is altered
* Adding unit tests for DS1
2021-02-17 02:36:25 -08:00
gravestench
298fc786b8
Merge branch 'master' into date-encoder-font
2021-02-10 12:14:41 -08:00
M. Sz
d9cfe7f435
d2font: removed d2interface.Animation argument from d2font.Load; added height reading in glyphs loader
2021-02-09 08:53:34 +01:00
gucio321
98c38b0dbf
Merge branch 'master' into data-encoder-dt1
2021-02-08 18:40:27 +01:00
gucio321
51833ed2de
Merge branch 'master' into date-encoder-font
2021-02-08 18:40:07 +01:00
Tim Sarbin
a85a7a18c1
Merge branch 'master' into master
2021-02-08 12:37:46 -05:00
M. Sz
e2ec1c6613
d2font: fixed lint errors
2021-02-08 17:25:02 +01:00
M. Sz
721a67b404
font table interpreter: moved d stuff responsible for font table into d2fileformats/d2font
2021-02-08 13:21:50 +01:00
gucio321
ac8794015e
Merge branch 'master' into data-encoder-dt1
2021-02-06 17:30:10 +01:00
gravestench
248eaf9d79
Minor refactor of d2cof
...
* Changed `Load` to `Unmarshal`
* made `Marshal` and `Unmarshal` into methods of `COF`
* added `New` function which creates a new, empty COF instance
* added helper functions `Marshal` and `Unmarshal`
* Changed `StreamReader.ReadBytes` to account for edge case of reading 0
bytes (this was returning an error when it should not have)
* added really simple unit tests for COF
2021-02-05 14:43:42 -08:00
M. Sz
9f56574066
data encoder: ds1
2021-02-05 12:52:51 +01:00
gucio321
1b8da9ec8e
Merge branch 'master' into data-encoding2
2021-02-03 16:28:10 +01:00
gucio321
5aded8de66
Merge branch 'master' into data-encoding2
2021-02-02 17:00:19 +01:00
Tim Sarbin
42a41d4817
Merge branch 'master' into hotfix2
2021-02-02 08:54:17 -05:00
M. Sz
909a0a9939
lintfix: gomnd
2021-02-02 12:02:11 +01:00
M. Sz
20f2649b65
asset manager: merged TranslateLabel to TranslateString
2021-02-02 10:15:18 +01:00
M. Sz
5a0571763e
data encoding: tbl
2021-02-02 10:08:32 +01:00
M. Sz
931df47607
d2ui: completed ButtonTypePartyBUtton's layout literal
2021-01-19 18:50:07 +01:00
M. Sz
b25bbe31f4
d2ui: rename NewCustomButton -> NewDefaultButton; lintfix
2021-01-19 17:47:42 +01:00
M. Sz
57bf4078b6
party panel: tooltip over players' names, players' colors, invite button, level -> lvl, relationships button has gets ret if disabled; d2ui improvement: addeded switcher's enabled methods
2021-01-19 14:09:22 +01:00
M. Sz
151ed22c7c
party panel: "seeing" and "listening" buttons' tooltips; d2ui improvement: added missed methods to switchable button widget
2021-01-18 15:17:18 +01:00
M. Sz
71e4470c25
party panel: colored labels; d2ui improvement: SwitchableButton.SetState() method; lintfix
2021-01-17 20:47:40 +01:00
M. Sz
9fb6c17d62
rename: *dezactivate* -> *deactivate*
2021-01-16 22:04:05 +01:00
M. Sz
bd3fc4bb25
party panel: switchers creator, party indexes (name, classs labels and switchers)
2021-01-16 21:59:44 +01:00
M. Sz
877da921bf
lintfix: fixed lint errors
2021-01-16 21:59:44 +01:00
M. Sz
4575df572f
d2ui improvement: added switchable button widget to d2ui
2021-01-16 21:59:44 +01:00
M. Sz
abee77968d
d2ui improvement: added NewCustomButton method to d2ui
2021-01-16 21:59:44 +01:00
gravestench
1fc787023d
fixed lint errors
2021-01-11 01:31:57 -08:00
gravestench
2c0f3d9cd9
d2tbl.LoadTextDictionary now returns an error
2021-01-11 01:12:46 -08:00
Tim Sarbin
c99810ad0e
Fixed various bugs, crashes, and slowdowns.
2021-01-10 02:44:42 -05:00
gucio321
5cd404e4a5
d2ui.Frame refactor ( #994 )
...
* d2ui.Frame refactor
* removed unneccessery d2asset.AssetManager argument from d2ui.NewUIFrame
* d2ui.Frame refactor
* removed unneccessery d2asset.AssetManager argument from d2ui.NewUIFrame
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
Co-authored-by: Tim Sarbin <tim.sarbin@gmail.com>
Co-authored-by: gravestench <dknuth0101@gmail.com>
2021-01-06 21:53:01 -08:00
gucio321
6addf7a243
removed links to closed issues from code ( #1005 )
...
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
Co-authored-by: gravestench <dknuth0101@gmail.com>
2021-01-06 21:48:12 -08:00
gucio321
b77d793698
added label-button widget ( #989 )
...
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-01-06 21:45:05 -08:00