Skip to content

Commit

Permalink
Enable CI
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed Oct 11, 2022
1 parent fb84bfd commit b048ac3
Show file tree
Hide file tree
Showing 7 changed files with 118 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Main

on:
push:
branches: '**'
tags: '*'

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
run:
uses: adya/pack-skse-mod/.github/workflows/pack.yml@main
with:
FOMOD_INCLUDE_PDB: true
FOMOD_MOD_NAME: "Simple Activate SKSE"
FOMOD_MOD_AUTHOR: "powerofthree"
FOMOD_MOD_NEXUS_ID: "56767"
FOMOD_SE_MIN_GAME_VERSION: '1.5'
FOMOD_AE_NAME: 'SSE v1.6+ ("Anniversary Edition")'
FOMOD_AE_DESCR: 'Select this if you are using Skyrim Anniversary Edition v1.6 or higher.'
FOMOD_AE_MIN_GAME_VERSION: '1.6'
FOMOD_REQUIRED_INSTALLATION_DIR: "Skyrim/Data"
PUBLISH_ARCHIVE_TYPE: '7z'
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "extern/CommonLibSSE"]
path = extern/CommonLibSSE
url = https://github.com/Ryan-rsm-McKenzie/CommonLibSSE
url = https://github.com/powerof3/CommonLibSSE
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20)
set(NAME "po3_SimpleActivateSKSE")
set(VERSION 1.4.0)
set(NAME "po3_SimpleActivateSKSE" CACHE STRING "")
set(VERSION 1.4.0 CACHE STRING "")
set(AE_VERSION 1)

# ---- Options ----
Expand Down
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"type": "STRING",
"value": "$env{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake"
"value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
"hidden": true,
Expand Down
87 changes: 87 additions & 0 deletions Skyrim/Data/SKSE/Plugins/po3_SimpleActivateSKSE.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
[Hide All Text]

;Hide all names and activation prompts
NPCs = false
Activators = false
Containers = false
Doors = false
Flora = false
Furniture = false
Items = false
Projectiles = false


[Hide Button]

;Hide activate button, eg. [E]. This setting may not work if you have HUD mods that bypass vanilla functionality
NPCs = true
Activators = true
Containers = true
Doors = true
Flora = true
Furniture = true
Items = true
Projectiles = true


[Hide Text]

;Hide activate text, eg. Talk, Pickpocket, Harvest, Sleep
NPCs = true
Activators = true
Containers = true
Doors = true
Flora = true
Furniture = true
Items = true
Projectiles = true


[Steal/Pickpocket]

;Item/NPC names turn red (or custom color defined below).
Show Indicator Using Name = true

;Color, in hex (default: red)
Custom Indicator Color = #FF0000


[Owned]

;Owned furniture name turns yellow (or custom color defined below).
Show Indicator Using Name = true

;Color, in hex (default: yellow)
Custom Indicator Color = #FFFF00


[Locked]

;Hide locked status (eg. Apprentice, Adept, Master)
Hide Locked Tag = false

;Set custom tag for all locked objects. Leave entry blank if you don't want to set it
;No effect if Hide Lock Tag is true.
Custom Locked Tag = <img src='DiamondMarker' width='10' height='15' align='baseline' vspace='5'>Locked

;Locked object names turn yellow (or custom color defined below).
Show Indicator Using Name = true

;Color, in hex (default: yellow)
Custom Indicator Color = #FFFF00


[Empty]

;Hide empty container state
Hide Empty Tag = true

;Set custom tag for empty objects (eg. [Empty]). Leave entry blank if you don't want to set it
;No effect if Hide Empty Tag is true.
Custom Empty Tag =

;Empty container names turn grey (or custom color defined below).
Show Indicator Using Name = true

;Color, in hex (default: grey)
Custom Indicator Color = #808080
1 change: 1 addition & 0 deletions extern/CommonLibSSE
Submodule CommonLibSSE added at 736231
2 changes: 1 addition & 1 deletion src/Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace UI
static bool has_gold_value(const RE::TESObjectREFRPtr& a_object)
{
const auto base = a_object ? a_object->GetBaseObject() : nullptr;
return base && base->GetGoldValue() != -1;
return base && base->GetGoldValue() > 0;
}

static std::string get_owned_tag()
Expand Down

0 comments on commit b048ac3

Please sign in to comment.