Skip to content

Commit

Permalink
Version 1.2.7 (#15)
Browse files Browse the repository at this point in the history
* Update LibAddonMenu-2.0r25 to r26 (#9)

* Update ProvisionsTeamFormation.txt
* Update README.md
* Delete LibAddonMenu-2.0r25.txt
* Update folder LibAddonMenu-2.0/

* Added deploy scripts that can be used for testing and release (#11)

* Fire events (#13)

* Register : SetHiddenCalled

* 2 registers : MakeIcon & UpdateIcon

TEAMFORMATION_MakeIcon & TEAMFORMATION_UpdateIcon

* Fix empty unit zone (#14)

* Fix empty unit zone name

Fix SI_SOCIAL_LIST_LOCATION_FORMAT, I add the string value "<<C:1>>"

* Update version number 1.2.7

* Update version number 1.2.7

* Update version number 1.2.7

* Update version number 1.2.7

* Update ProvisionsTeamFormation.txt
  • Loading branch information
GuimDev authored Jul 9, 2018
1 parent 7bc6751 commit 7a42e06
Show file tree
Hide file tree
Showing 13 changed files with 758 additions and 47 deletions.
8 changes: 4 additions & 4 deletions ProvisionsTeamFormation.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Title: |c00C000Prov|r's |cFF9999Team|cFF0000Formation|r 1.2.6b
## Title: |c00C000Prov|r's |cFF9999Team|cFF0000Formation|r 1.2.7
## Description: Affiche et gère la formation du groupe. (Show and Manage group formation)
## Author: |c00C000Provision|r
## SavedVariables: ProvTFSV
## OptionalDependsOn: LibStub LibAddonMenu-2.0
## APIVersion: 100022 100023 100024
## Version: 1.2.6b
## Version: 1.2.7

; LibAddonMenu-2.0 r25 : A library to aid in the creation of option panels.
; LibAddonMenu-2.0 r26 : A library to aid in the creation of option panels.
libs/LibStub/LibStub.lua
libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua
libs/LibAddonMenu-2.0/controls/panel.lua
Expand Down Expand Up @@ -38,4 +38,4 @@ function/uiLoop.lua
TeamFormation.lua
TeamFormation.xml

Bindings.xml
Bindings.xml
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ProvisionsTeamFormation
ProvisionsTeamFormation 1.2.7
=============

TeamFormation is a user Interface for The Elder Scrolls Online, designed to show the positions and health of your teammates, like a radar.

*I'm happy to share my addon with you, but please **don't make a fork on esoui or curse** without my authorization.*

[![LibAddonMenu-2.0r25](https://img.shields.io/badge/LibAddonMenu-2.0r25-orange.svg)](http://www.esoui.com/downloads/info7-LibAddonMenu.html) [![Esoui Prov's TF page](https://img.shields.io/badge/esoui.com-Provision%27s%20TeamFormation-green.svg)](http://www.esoui.com/downloads/info1135-ProvisionsTeamFormation.html)
[![LibAddonMenu-2.0r26](https://img.shields.io/badge/LibAddonMenu-2.0r26-orange.svg)](http://www.esoui.com/downloads/info7-LibAddonMenu.html) [![Esoui Prov's TF page](https://img.shields.io/badge/esoui.com-Provision%27s%20TeamFormation-green.svg)](http://www.esoui.com/downloads/info1135-ProvisionsTeamFormation.html)

# Presentation

Expand Down
3 changes: 2 additions & 1 deletion TeamFormation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ end

function TeamFormation_SetHidden(bool)
ProvTF.UI:SetHidden(GetGroupSize() == 0 or bool)
CALLBACK_MANAGER:FireCallbacks("TEAMFORMATION_SetHiddenCalled", bool)
end

function TeamFormation_ResetRefreshRate()
Expand Down Expand Up @@ -74,4 +75,4 @@ end

function TeamFormation_OnInitialized()
EVENT_MANAGER:RegisterForEvent(ProvTF.name, EVENT_ADD_ON_LOADED, function(...) TeamFormation_OnAddOnLoad(...) end)
end
end
2 changes: 2 additions & 0 deletions deploy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
41 changes: 41 additions & 0 deletions deploy/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
const addonConfig = require('./config');
const util = require('util');
const exec = util.promisify(require('child_process').exec);

module.exports = function (grunt) {
grunt.initConfig({
clean: {
build: [`${addonConfig.buildFolder}/${addonConfig.modName}`],
deploy: [`${addonConfig.esoAddonDir}/${addonConfig.modName}`],
options: {
force: true
}
},
copy: {
build: {
files: [
{
expand: true,
// Assumes we are running from a sub-folder located inside the addon.
cwd: '../',
src: addonConfig.sourceFiles,
dest: `${addonConfig.buildFolder}/${addonConfig.modName}`
}
],
},
deploy: {
files: [
{
expand: true,
cwd: addonConfig.buildFolder,
src: [`${addonConfig.modName}/**`],
dest: addonConfig.esoAddonDir
}
]
}
}
});

grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
}
18 changes: 18 additions & 0 deletions deploy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Dependencies
- [Node.js](https://nodejs.org) - Follow link to install for your platform
- [Yarn](https://yarnpkg.com/) - After Node.js is installed run `npm install -g yarn`

# Configure <br />
See '[config.js](./config.js)' for available configurations. <br />
`modName`: Name of the mod. (duh) <br />
`defaultBuildDir`: Destination for 'built' addon files. <br />
`sourceFiles`: Provides the list of files to be deployed. New files that should be included with the addon should be added to the list. <br />
`esoAddonDir`: Specifies where to deploy game files. It looks to see if the `ESO_ADDON_DIR` environment variable is set.

# Available commands
All commands should be run from a terminal inside the [deploy](./) folder.
1. `yarn run build`
- copies addon files to 'build' directory specified in [config.js](./config.js)
2. `yarn run deploy`
- Copies files from 'build' folder into the folder defined in `esoAddonDir` in [config.js](config.js)

19 changes: 19 additions & 0 deletions deploy/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const defaultBuildDir = 'build';
const addonConfig = {
modName: "ProvisionsTeamFormation",
buildFolder: defaultBuildDir,

// Set addon directory in environment vars or set default above. Mine is set to 'C:\\Users\\Mike\\Documents\\Elder Scrolls Online\\live\\AddOns'
esoAddonDir: process.env['ESO_ADDON_DIR'] || defaultBuildDir,
sourceFiles: [
'function/**',
'lang/**',
'libs/**',
'Bindings.xml',
'header.lua',
'TeamFormation.lua',
'TeamFormation.xml'
]
};

module.exports = addonConfig
15 changes: 15 additions & 0 deletions deploy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "TeamFormationDeploy",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"build": "grunt clean:build && grunt copy:build",
"deploy": "grunt clean:deploy && grunt copy:deploy"
},
"devDependencies": {
"grunt": "^1.0.3",
"grunt-contrib-clean": "^1.1.0",
"grunt-contrib-copy": "^1.0.0"
}
}
Loading

0 comments on commit 7a42e06

Please sign in to comment.