100 Commits
Author SHA1 Message Date
bbassie dfcefb3a1b Merge branch 'feature/task-list-update' of https://github.com/bbassie/scenario into feature/task-list-update 2021-04-28 00:28:51 +02:00
bbassie a3fe06b1f8 Fix documentation and some names of functions, variables and arguments 2021-04-28 00:25:19 +02:00
ea8e093c31 Apply suggestions from code review
Co-authored-by: mark9064 <30447455+mark9064@users.noreply.github.com>
2021-04-27 23:33:05 +02:00
254d69f646 Fix documentation modules/gui/task-list.lua
Co-authored-by: mark9064 <30447455+mark9064@users.noreply.github.com>
2021-04-27 23:29:28 +02:00
0f5868378a Fix documentation modules/control/tasks.lua
Co-authored-by: mark9064 <30447455+mark9064@users.noreply.github.com>
2021-04-27 23:16:18 +02:00
bbassie 77e0aff451 Variable name fix 2021-04-26 10:57:19 +02:00
bbassie 9e6d4e7454 Move close button to the side of the header 2021-04-26 02:31:23 +02:00
bbassie ea24477175 Fixed some of the requested changes
* Made add_task and update_task have consistent arguments
* Removed default task title and body
* Task list resized to fit to 10 items
2021-04-25 22:26:22 +02:00
bbassie 8674704f15 Fix docs gen param argument name mismatch
param and formal argument name mismatch: 'task_title' 'message_title'
param and formal argument name mismatch: 'task_body' 'message_body'
2021-04-16 22:50:16 +02:00
bbassie b08e93e245 Fix parse_message 2021-04-16 22:45:58 +02:00
bbassie eeb9f31b57 Basic task with title and body implementation
- Parsing of the message is a bit low effort and will need to be improved.
2021-04-14 00:24:52 +02:00
bbassie 465627535b Change tooltip of the confirm button
- Tooltip didn't show usefull information on why you could not confirm
2021-04-11 23:07:07 +02:00
bbassie 7bbefd67b4 Change button size
- The icons were clipping
2021-04-11 23:03:16 +02:00
bbassie 745f10b10d Added file and logic comments 2021-04-11 20:09:35 +02:00
bbassie 11296b3b36 Small improvements
- Removed extra redraw that doesn't seem to be needed
- Fixed that it would not focus on the create new warp textbox
2021-04-11 19:54:38 +02:00
bbassie d853d1c991 Delete button and some fixes
- Add delete task button
- Fix update task item
- Fix no tasks found visibility and tooltip
2021-04-10 22:13:21 +02:00
bbassie 3d9c7e3400 Task list redesign
- Redesigned the gui
- Added / changed locales where needed
2021-04-10 21:30:29 +02:00
badgamernlandCooldude2606 c59cb6bdac Added ability to warp while driving in a vehicle 2021-03-30 02:12:37 +01:00
bbassie 928b069539 Help msg fix 2021-02-09 22:23:37 +01:00
bbassie c7c505b3b5 Basic implentation of a last location command 2021-02-09 22:21:11 +01:00
bbassie 2fe9d5650e Finishing touches:
* Removed 1 time use local
* Fixed double permission check
* Locale fixes
2021-01-29 01:08:58 +01:00
bbassie 1042fe6379 Make number bold 2021-01-27 22:13:03 +01:00
bbassie 10059f5ea9 Merge branch 'feature/task-list-update' of https://github.com/bbassie/scenario into feature/task-list-update 2021-01-27 01:11:49 +01:00
bbassie 8a65264840 Task list styling fixes:
* Ported over textbox styles to make it strechable.
* Fixed the label to allow multi line and not create weird empty areas below the table.
* Fixed cell padding to be better spaced, may need more fine tuning.
2021-01-27 01:11:33 +01:00
bbassie ea4850e04f Fixed global register 2021-01-26 23:16:54 +01:00
bbassie 849957279c Merge branch 'feature/warp-net-id' of https://github.com/bbassie/scenario into feature/warp-net-id 2021-01-26 23:06:57 +01:00
bbassie 90f650ce7a Implemented requested changes
* Pressing `Discard changes` removes warp if it has been pressed after `New warp`.
* Changed `not_available` (not in range) status icon to a cross, fits the sizing of the other icons better.
* Renamed locals key `'warp-list.discard-tooltip'` to `'warp-list.remove-tooltip'`
* Added textfield squashable and strechable to make it dynamic to the container size.
* Container size changes depending on permissiong `'allow_add_warp'`
2021-01-26 23:06:40 +01:00
bbassie cd566c8246 Implemented requested changes
* Pressing `Discard changes` removes warp if it has been pressed after `New warp`.
* Changed `not_available` (not in range) status icon to a cross, fits the sizing of the other icons better.
* Renamed locals key `'warp-list.discard-tooltip'` to `'warp-list.remove-tooltip'`
* Added textfield squashable and strechable to make it dynamic to the container size.
* Container size changes depending on permissiong `'allow_add_warp'`
2021-01-26 23:01:07 +01:00
bbassie 2fc598f287 Merge branch 'feature/warp-net-id' of https://github.com/bbassie/scenario into feature/warp-net-id 2021-01-24 20:13:59 +01:00
bbassie b84dad66d5 Fixes to warp-list gui
* Fixed indentation.
* Updated function names to be more representative of what they do.
* Added more comments
* Moved some variables around for easier readability and such
2021-01-24 20:13:43 +01:00
bbassie e72f927d64 Fixes to warp module
* Variable name.
* Moved variable initialisation to outside a function.
2021-01-24 20:11:11 +01:00
ca8d03304c Removed one use variable
Co-authored-by: Cooldude2606 <cooldude260607@gmail.com>
2021-01-24 19:41:23 +01:00
bbassie 7e7660f1e1 Add tooltip to icon for better accessibility 2021-01-24 02:26:26 +01:00
bbassie 3ab6326a5f Tasklist refactor to match the new warp system
* Removed the ability to pass `task_number` to `Task.add_task`
* Unified button styles of the Gui
* Made task-list code simular to the new warp-list
2021-01-24 02:02:24 +01:00
bbassie 8b717ee1a5 Warp improvements
* Fixed that it clears table every warp update.
* Dirty fix unknown signal icon, it gets replaced by the old icon
2021-01-24 01:58:30 +01:00
bbassie d0afee78a4 Color status to icon status
Because debate about the color usage I made the change to using icons.
2021-01-23 23:01:05 +01:00
bbassie c308aa8c21 * If statement restructured like suggested, seems to work fine;
* Changed cooldown color to be same as the disabled one;
2020-11-17 23:35:14 +01:00
bbassie 94fa2bc8ea Warp additions
* Add bypass styling and functionality
* Fix using wrong warp position for goto label
* Add warp placement checks
* Edit remove warp to keep the corpses of the entities
* Fix warp label and textbox
* Make Warp container wider by 20
2020-11-15 01:46:59 +01:00
bbassie 8defd39762 Draw corpse lines improvement
* Itterate over deaths in reverse.
* Check expired bodies and break out of the loop.
2020-11-14 21:01:49 +01:00
bbassie 2fcee48a97 Corpse light and line addition 2020-11-08 20:05:25 +01:00
bbassie ebfe24c21c Removed temp debug rendering 2020-11-08 19:04:44 +01:00
bbassie 1d980c6d64 Warp water check 2020-11-08 19:02:55 +01:00
bbassie 84fda87848 Changed warp area to fit the radius 2020-11-08 18:44:04 +01:00
badgamernl e851b48a0e Remove spawn debug message 2020-11-08 16:04:07 +01:00
badgamernl c95616d1f8 Fix network id checks 2020-11-08 15:38:00 +01:00
badgamernl bb5790a33d Fix function name 2020-11-08 15:30:10 +01:00
badgamernl 90e025aa1a Warp-list changes:
- Refactor gui layout
- Changed update flow
2020-11-08 05:04:53 +01:00
badgamernl 94cfceb5a3 Fix electric pole name 2020-11-08 05:00:35 +01:00
badgamernl 8197b172ad Working implementation 2020-11-07 02:30:37 +01:00
badgamernl c4cc626f2b Removed gui locales 2020-11-07 01:22:02 +01:00
badgamernl 05b5b109f1 Removed kill button from playerlist actions 2020-11-07 01:22:02 +01:00
badgamernl 294766714a Removed Temp ban related stuff 2020-11-07 01:10:11 +01:00
badgamernl e8dd5cedea Fixed the part that removes the ghost train staton key 2020-11-07 00:50:31 +01:00
badgamernl bd59342497 Changed choose_elem from item type to signal 2020-11-07 00:42:34 +01:00
badgamernl 848207d8db Fixed unused argument player 2020-11-06 22:39:58 +01:00
badgamernl ce565441c8 Removed debug message 2020-11-06 22:37:46 +01:00
badgamernl 1f549688fa Forgot to stage the roles.lua 2020-11-06 22:30:24 +01:00
badgamernl 61a3f92982 Add command /tag-color 2020-11-04 00:38:01 +01:00
badgamernl defe77f629 Filter out blueprint and blueprint-book 2020-11-03 23:24:22 +01:00
badgamernl c46244e7ed Fix floating text position 2020-09-11 20:48:35 +02:00
badgamernl 72a3378bfa Fix toggle item button 2020-09-08 20:34:38 +02:00
badgamernl 7449535aa7 Remove alignment flow
- This should also help with longer entity names
2020-09-08 17:13:18 +02:00
badgamernl afcd16c56e Fixed table center
Fixed locale
2020-09-08 16:20:02 +02:00
badgamernl a01ba807f5 Change padding
(Was causing the gui width to change when entity expanded)
2020-09-07 05:11:29 +02:00
badgamernl f76d8b0a3a Fix unneeded string.match
- Tip from cool to use tooltip on flow
2020-09-07 05:03:28 +02:00
badgamernl cbb925eb65 Fix item and entity name assingment
- Replaced with a more readable version
2020-09-07 00:52:40 +02:00
badgamernl ca2ff8075e Extra space added to entity table
(There was some extra horizontal space that was empty)
2020-09-05 00:48:28 +02:00
badgamernl ef823f2f69 Fix empty placeholder using unneeded gui element 2020-09-05 00:44:11 +02:00
badgamernl 00bb67e9a0 Fix scroll panel padding issues 2020-09-05 00:32:21 +02:00
badgamernl 4100ba9876 Fix function calls 2020-09-03 04:27:28 +02:00
badgamernl b03dbf8674 Fix player.print 2020-09-03 04:22:29 +02:00
badgamernl d19cb5e8d7 Removed EmmaLua because CI complained 2020-09-03 03:48:48 +02:00
badgamernl e52f06ddf9 Fixed locale issues 2020-09-03 03:46:23 +02:00
badgamernl e23092aa77 Fixed mixup of docs 2020-09-03 03:37:10 +02:00
badgamernl 620051ddac Fix function chain 2020-09-03 03:34:59 +02:00
badgamernl f149e446a1 Fixed heavy repitition
- Introduced EmmyLua documentation (can be removed if needed)
- Remamed type to inv
2020-09-03 03:33:39 +02:00
badgamernl ecadbd6534 Resolve redundant config locals 2020-09-03 02:04:39 +02:00
badgamernl 58a23a901a Fix amount textbox validation & event 2020-09-02 16:03:31 +02:00
badgamernl 665ecfca7c Change in look and feel:
- Change the way the header text is displayed;
- Change entity toggle to be checkmark and cross;
- Added burner mining drill to autofill;
- Added comments;
- Changed use of some scroll tables to just normal tables;
- Fixed entity toggle not working when placing down entities;
2020-09-02 00:10:10 +02:00
badgamernl f1537af711 Major overhaul of inner workings:
- Change config layout to entity based;
- Change the gui layout to entity based;
- Fix entity placed event to work with new system;
- Change gui styles to fit other gui's more;
- Added demo entities with items:
* Car;
* Locomotive;
* Spidertron;
* Gun Turret;
* Stone furnace;
* Steel furnace;
2020-09-01 05:43:05 +02:00
badgamernl dac4d40682 Changed config/settings loop
- Fixed settings/entity loop should be faster now
- Fixed floating text position overlapping
- Added more comments
2020-08-20 22:29:50 +02:00
badgamernl 9911a0e3d3 Fixed redundand contains function 2020-08-20 21:48:53 +02:00
badgamernl 8efa1c0954 Locale and code quality improvements
- Added tank ammo autofill to config
- Fixed locale to be fancier
- Fixed some repatative code
2020-08-20 21:45:35 +02:00
badgamernl 05153c7a6c Fix desync settings table shared acros all players 2020-08-20 21:03:45 +02:00
badgamernl 453b4f8357 Added Entity build event autofill
- Added autofill on entity placement;
- Added nice flying text;
- Fixed ability to insert more of a item than the stacksize allows;
2020-08-20 00:10:36 +02:00
badgamernl c2ea0bf590 Added setings left container
- Changed toolbar button to left flow toggle;
- Added Ammo section;
- Added Fuel section;
- Added default config settings;
- Added autofill item toggle button and textboxes;
2020-08-19 01:35:03 +02:00
badgamernl 0900fe13ea Added Autofill toolbar button
- May needs to be changed to have a left flow with option;
2020-08-17 23:04:20 +02:00
badgamernl 4dee863e41 Delete outdated feedback link:
- Doesn't seem to be used anymore and obstructs the view when at spawn.
2020-08-17 20:43:53 +02:00
BastiaanandGitHub effae90ff1 Fix Issue #149
Filtered out gui elements without Gui.define
2020-03-22 23:47:48 +01:00
badgamernl f4eb5ada5a Fix async module to allow recursive "async" functions
Return `true` in async function to run again
2020-03-22 22:56:39 +01:00
badgamernl 76f86b7a97 Added toolbar button color for open flows
* Added top flow button style `Gui.top_flow_button_visible_style`
* Added function to style toolbar buttons `Gui.left_toolbar_button_style`
* Modified code to call the toolbar button style function
2020-02-26 01:36:40 +01:00
badgamernl 2d90d1dcdd Rerenamed events 2020-02-26 00:49:57 +01:00
badgamernl 8e9325fc0c Changed keep open to be a one liner 2020-02-26 00:42:33 +01:00
badgamernl efd9c7b609 Renamed Gui.event to Gui.custom_event 2020-02-26 00:41:18 +01:00
badgamernl 3aa77227ca Removed goto usage 2020-02-26 00:35:55 +01:00
badgamernl c2676d3bd6 Added ChatBot Async commands:
- makepopcorn
- passsomesnaps
- makecocktail
- makecoffee
- orderpizza
- maketea
- meadplease
- passabeer
2020-02-25 22:41:41 +01:00
badgamernl 1273de4e86 Added custom event on_visibility_changed_by_click
Fixed warp flow issue because of this
2020-02-24 23:43:41 +01:00
badgamernl 0db5565024 Added ability to chain raise_custom_event 2020-02-24 23:36:41 +01:00
badgamernl 105f53f629 Fixed warp button init 2020-02-21 23:21:06 +01:00
bbassie ae748471c7 Blame more people that can fuck up 2019-07-04 09:06:27 +02:00