Skip to content

Commit

Permalink
Minor aesthetic modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaurin committed Nov 10, 2023
1 parent 397e6eb commit 56f065e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion rs_Assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _process_roughmets_multi(self) -> List["LiveryAsset"]:
os_join(self._dl_dir, self.basename, roughmets_dir)
)
new_instance = LiveryAsset(
basename=f"Roughmet {roughmets_dir}",
basename=f"Roughmets {roughmets_dir}",
gdrive_id=self.gdrive_id,
asset_type="roughmets_single",
)
Expand Down
10 changes: 0 additions & 10 deletions templates/effective_user_choice.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ Section "-Resolve checkboxes"
{%- endfor %}
SectionEnd

Section "-Resolve pilot priorities"
${If} ${SectionIsSelected} ${PILOTPRIO}
DetailPrint "Modifying pilot priorities..."
${PowerShellExecFileLog} '"$PLUGINSDIR\livery-priorities.ps1" -dcs_liveries_root_dir "$InstDir" -pilot "$PilotSelected" '
IfErrors 0 +2
Abort "There was a problem with the pilot priorities script. Aborting. You can probably use the liveries as normal."
; nsExec::ExecToStack 'powershell -inputformat none -ExecutionPolicy RemoteSigned -File "$PLUGINSDIR\livery-priorities.ps1" -dcs_liveries_root_dir "$InstDir" -pilot "$PilotSelected" '
; MessageBox MB_OK "$PilotSelected"
${Endif}
SectionEnd
{%- endmacro %}


Expand Down
4 changes: 1 addition & 3 deletions templates/onclick_handler.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ FunctionEnd
{#- Selects a parent if any of the children are clicked #}
{#- Applies to install items only #}
{%- macro dependancy_install_select_parent(parent) %}
{#- ; PARENT: {{parent.basename}} // {{parent.category_name}} #}
{%- for child in parent._children %}
{#- ; CHILD: {{child.basename}} // {{child.category_name}} #}
{%- if child == parent._children[0] %} {# First element in the loop has 'IfNot', others have 'AndIfNot'#}
{%- if child == parent._children[0] %} {# First element in the loop has 'If', others have 'OrIf'#}
${If} ${SectionIsSelected} {{ '${' }}{{child._uuid + "_install"}}{{ '}' }} ; child.basename: {{child.basename}} // child.category_name: {{child.category_name}}
${OrIf} ${SectionIsPartiallySelected} {{ '${' }}{{child._uuid + "_install"}}{{ '}' }} ; child.basename: {{child.basename}} // child.category_name: {{child.category_name}}
{%- else %}
Expand Down
11 changes: 11 additions & 0 deletions templates/rs-liveries.nsi.j2
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,14 @@ FunctionEnd

{%- import "effective_user_choice.j2" as effective_user_choice %}
{{- effective_user_choice.render(all_assets, github_ref_name) }}

Section "-Resolve pilot priorities"
${If} ${SectionIsSelected} ${PILOTPRIO}
DetailPrint "Modifying pilot priorities..."
${PowerShellExecFileLog} '"$PLUGINSDIR\livery-priorities.ps1" -dcs_liveries_root_dir "$InstDir" -pilot "$PilotSelected" '
IfErrors 0 +2
Abort "There was a problem with the pilot priorities script. Aborting. You can probably use the liveries as normal."
; nsExec::ExecToStack 'powershell -inputformat none -ExecutionPolicy RemoteSigned -File "$PLUGINSDIR\livery-priorities.ps1" -dcs_liveries_root_dir "$InstDir" -pilot "$PilotSelected" '
; MessageBox MB_OK "$PilotSelected"
${Endif}
SectionEnd

0 comments on commit 56f065e

Please sign in to comment.