Commit Graph

21 Commits

Author SHA1 Message Date
DeadStarlin
04f02fe69d
Fixed cli timed unlocks/locks + added one more spacing option (#136)
update dev branch + fixes & enhancements to timed achievements
2022-11-29 11:21:00 +00:00
William Pierce
8ad90547d2 Add hack for stats parsing on CLI
Floats can be ints too in strings, so try both of them.

Fixes #70
2020-06-25 00:22:36 -07:00
William Pierce
8e1dd4ba13 Bump screenshots, polish code
- Bump screenshots to show off new features
- Update README examples to reflect the help text
(though the posistional arguments can go at the end!)
- Minor code changes to clean up some inconsistencies
2020-05-20 22:00:24 -07:00
William Pierce
022d170b3e Implement launching app in separate window
This is the very last feature that the origincal SAM does that
SamRewritten doesn't (in fact, that's the only way for the
original SAM to work.) Implement it. Now we can do both -
launch in the same window or a separate window.

Get rid of 'cli' variable logic and just return true or false for
CLI mode. Doing so also brings down the complexity of the
go_cli_mode function to only do one action at a time.
2020-05-19 00:13:13 -07:00
William Pierce
aeab55e0e0 Make timed achievement unlock not block GUI
Implement this as a timer loop that gets
scheduled with the time until the next unlock.

Also fix a bug where CLI mode screws up GUI mode
by always launching an app.

Also error check CLI options more and
update README with update CLI options.
2020-05-18 02:35:07 -07:00
William Pierce
0c97eddd29 Implement timed mofications in CLI
Also properly hide timed modifications window after modifications are
done and update glade file to make glade happy and display correctly.
2020-05-17 18:12:21 -07:00
William Pierce
164c404eb1 Convert all tabs to spaces 2020-05-10 05:45:47 -07:00
William Pierce
4f3f794737 Cleanup keyvalue get returns
Make KeyValue::get/get2 always return a node, and check the returned
node's validty to check errors instead of NULL check. It is not an error
for certain fields to not be present.
2020-05-10 05:45:47 -07:00
William Pierce
3bce16fe41 Implement more permissions
Implement achievement permissions and hook up both achievement
and stats permission to the CLI.

Need to decide how to hook them up in the GUI.
2020-05-10 05:45:47 -07:00
William Pierce
17bec08245 Implement committing stat changes
Plumb the rest of the logic through the unlock path
Stats are now functional.

Misc improvements:
Invert type checking on CLI because an int could be
interpreted as a float incorrectly. By checking for float
first, we get the right value: an int can be a float but a
float can't be an int.
Fix unitialized valid_conversion causing stat changes to
never show up.
Various coding and style improvements along the way

Fixes #13
2020-04-17 02:25:13 -07:00
William Pierce
f153bdbe2c Add support for adding stat modifications
Support is added for both GUI and CLI
Remove unused original_value in StatValue_t - changes
are encoded in StatChange_t.
Make pending modification more intuitive to work with
by using Change_t struct types.
Actually committing stats changes will be done in next commit.
2020-04-13 02:04:30 -07:00
William Pierce
f891e25535 Hook up stat types and values to GUI 2020-04-12 15:53:03 -07:00
William Pierce
e571f18cee Hook up stats to GUI
Hook up displaying of stat names to the GUI.  More field will
be added in later commits.
Removed unused references to schema parser since
that's been put in the child process.
Conform some more types to achievement_and_stat naming since
we're adding stats now.
2020-04-12 01:40:51 -07:00
PaulCombal
f96a34be99 Finishing touches 2020-02-19 11:19:07 +01:00
PaulCombal
65d25d92b0 Printing with --ls works 2020-02-17 19:57:24 +01:00
PaulCombal
ccffa9da6b WIP 2020-02-12 21:46:27 +01:00
PaulCombal
0df2eb7422 Simple stats listing. Makes me worried about memory leaks in the schema parser 2020-01-15 10:44:32 +01:00
PaulCombal
89a5ab0a75 Description fix 2020-01-10 18:23:05 +01:00
PaulCombal
cbf2606ddb PR comments implementation 2020-01-10 09:56:47 +01:00
PaulCombal
1866b39545 Added CLI commands 2020-01-09 23:03:43 +01:00
PaulCombal
6dcf9137f6 halfway cleanup 2019-12-02 15:08:12 +01:00