Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3DEN - ACE_Settings Display #3563

Closed
wants to merge 8 commits into from
Closed

3DEN - ACE_Settings Display #3563

wants to merge 8 commits into from

Conversation

PabstMirror
Copy link
Contributor

When merged this pull request will:

  • Adds ability to set ace_setting's from 3d mission editor.

This adds another source of ace_settings, they should be loaded after mission config (description.ext) but before modules. Any setting set, will be forced set.

ToDo:

  • Look at how we want to organize settings, possibly add a sub category, eg. Basic/Advanced and common sub categories for medical. Allowing us to organize them similarly to the different medical modules. Right now medical category has a LOT of settings.
  • Some settings have displayName/description but it isn't set in the configs (partial done by Ace_Settings - add name,descption,categories #3568)
  • Some settings names really only make sense with contex of what module they are from, when in a large list it can be confusing.
  • Hide via subCategory = "#hide";

@@ -15,4 +15,50 @@ GVAR(serverSideValues) = [];
GVAR(categories) = [];
GVAR(currentCategorySelection) = 0;

recomp = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason we use recomp without a prefix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just for development, recompiles all funcs before opening menu.
Makes testing very fast.
Will remove when PR is ready.

@jonpas jonpas mentioned this pull request Mar 8, 2016
18 tasks
@PabstMirror
Copy link
Contributor Author

Added sub-categories, if not explictly defined they are generated from the var name of the setting.
Helps to organize the list, and adds context for the setting display name.

2016-03-08_00001

@commy2
Copy link
Contributor

commy2 commented Mar 8, 2016

That looks amazing

@nicolasbadano
Copy link
Contributor

👏👏👏

@jonpas
Copy link
Member

jonpas commented Mar 8, 2016

Impressive! 👍

@PabstMirror PabstMirror added kind/enhancement Release Notes: **IMPROVED:** and removed status/WIP labels Mar 30, 2016
@PabstMirror PabstMirror added this to the 3.6.0 milestone Mar 30, 2016
@PabstMirror
Copy link
Contributor Author

Should be good to review now, still want to move some settings to categories/subCategories, but that can be done on another PR

@@ -15,4 +15,55 @@ GVAR(serverSideValues) = [];
GVAR(categories) = [];
GVAR(currentCategorySelection) = 0;


[] spawn {
sleep 0.1; //is3den command has problems at pre-init, need spawn/sleep
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason we don't run this at post-init is pre-init has issues?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind - I just read the comment on line 24.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about execNextFrame?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

execNextFrame is installed in postInit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of things are done on postinit. Doesn't that mean all these are now broken in 3den?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

postInit does fire when you press preview

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that is the case - why are we doing a spawn here? Is this comment false:

//Post-init won't run in 3den, so we need to directly call some settings funcs normally run at common: post-init

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by "in 3den" he means while placing objects. postInit will fire once you press "preview", but not while you actually are in the editor.

@thojkooi
Copy link
Contributor

thojkooi commented May 7, 2016

@commy2 would you be able to give some input? This might be something for CBA settings framework perhaps?

@PabstMirror PabstMirror modified the milestones: Backlog, 3.6.0 Jun 2, 2016
@thojkooi
Copy link
Contributor

Leaving this open until we decide whatever or not we commit to using the CBA settings framework. If we do, this PR should be closed. Otherwise, it is good to go in.

@jonpas
Copy link
Member

jonpas commented Jun 22, 2017

Redundant with move to CBA Settings.

@jonpas jonpas closed this Jun 22, 2017
@jonpas jonpas deleted the 3denSettings branch June 22, 2017 15:41
@jonpas jonpas removed this from the Backlog milestone Jun 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants