Initial commit
BIN
data/magic-agclassic-indicator.mse-include/ci0_c.png
Normal file
|
After Width: | Height: | Size: 703 B |
BIN
data/magic-agclassic-indicator.mse-include/ci1_b.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci1_g.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci1_r.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci1_u.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci1_w.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci2_bg.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci2_br.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci2_gu.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci2_gw.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci2_rg.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci2_rw.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci2_ub.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci2_ur.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci2_wb.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci2_wu.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci3_bgw.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci3_brg.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci3_gub.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci3_gwu.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci3_rgw.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci3_rwu.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci3_ubr.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci3_urg.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci3_wbr.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci3_wub.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci4_brgw.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci4_gwub.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci4_rgwu.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci4_ubrg.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci4_wubr.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
data/magic-agclassic-indicator.mse-include/ci5_wubrg.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
42
data/magic-agclassic-indicator.mse-include/include
Normal file
@@ -0,0 +1,42 @@
|
||||
## AgClassic Color Indicator 2016-01-17
|
||||
mse version: 2.0.0
|
||||
short name: AgCla CI
|
||||
full name: AgClassic Color Indicator
|
||||
installer group: magic/silvercut/AgClassic/Indicator
|
||||
position hint: 100000
|
||||
|
||||
version: 2015-12-20
|
||||
|
||||
# This file doesn't do anything, other files in this directory can be included
|
||||
# in game/style files:
|
||||
#
|
||||
#depends on:
|
||||
# package: magic-agclassic-indicator.mse-include
|
||||
# version: 2015-12-20
|
||||
#
|
||||
#...
|
||||
#
|
||||
#init script:
|
||||
# # Load scripts for AgClassic Color Indicator
|
||||
# include file: /magic-agclassic-indicator.mse-include/scripts
|
||||
#
|
||||
#...
|
||||
#
|
||||
#styling field:
|
||||
# type: boolean
|
||||
# name: use color indicator
|
||||
# description: Use color indicator symbol on typeline.
|
||||
# initial: no
|
||||
#
|
||||
#...
|
||||
#
|
||||
# ############################# Card type
|
||||
# indicator:
|
||||
# left: 20
|
||||
# top: 295
|
||||
# width: 15
|
||||
# height: 15
|
||||
# z index: 2
|
||||
# render style: image
|
||||
# visible: { styling.use_color_indicator == "yes" }
|
||||
# image: { card_indicator() }
|
||||
30
data/magic-agclassic-indicator.mse-include/scripts
Normal file
@@ -0,0 +1,30 @@
|
||||
# AgClassic Indicator 2015-12-20
|
||||
|
||||
indicator_template := { "/magic-agclassic-indicator.mse-include/ci{color_count}_" + input + ".png" }
|
||||
|
||||
indicator_hybrid := [
|
||||
0: { indicator_template("c") }
|
||||
1: { indicator_template(ci_colors[0]) }
|
||||
2: { indicator_template(ci_colors[0] + ci_colors[1]) }
|
||||
3: { indicator_template(ci_colors[0] + ci_colors[1] + ci_colors[2]) }
|
||||
4: { indicator_template(ci_colors[0] + ci_colors[1] + ci_colors[2] + ci_colors[3]) }
|
||||
5: { indicator_template(ci_colors[0] + ci_colors[1] + ci_colors[2] + ci_colors[3] + ci_colors[4]) }
|
||||
]
|
||||
|
||||
# Determine indicator based on the card_color multiple choice options
|
||||
indicator_color := {
|
||||
# The selected colors
|
||||
ci_colors := sort_text( order: "(wubrg)"
|
||||
, (if chosen(choice:"white") then "w")
|
||||
+ (if chosen(choice:"blue") then "u")
|
||||
+ (if chosen(choice:"black") then "b")
|
||||
+ (if chosen(choice:"red") then "r")
|
||||
+ (if chosen(choice:"green") then "g"))
|
||||
color_count := number_of_items(in: ci_colors)
|
||||
|
||||
base_hybrid[color_count]()
|
||||
}
|
||||
|
||||
card_indicator := { indicator_color(type:"identity", base_hybrid:indicator_hybrid) }
|
||||
|
||||
|
||||