Download
You can download the Stream Deck Plugin and the default Web Overlay theme for OBS HERE
Tutorials
Basic customization
Advanced Customization
You can customize each part of the overlay with the following variables.
:root {
--bitemA1-color: box background for item A1
--bitemA2-color: var(--bitemA1-color);
--bitemA3-color: var(--bitemA1-color);
--bitemA4-color: var(--bitemA1-color);
--bitemB1-color: box background for item B1
--bitemB2-color: var(--bitemB1-color);
--bitemB3-color: var(--bitemB1-color);
--bitemB4-color: var(--bitemB1-color);
--bstatusA1-color: box background for item A1
--bstatusA2-color: var(--bstatusA1-color);
--bstatusA3-color: var(--bstatusA1-color);
--bstatusA4-color: var(--bstatusA1-color);
--bstatusB1-color: box background for item B1
--bstatusB2-color: var(--bstatusB1-color);
--bstatusB3-color: var(--bstatusB1-color);
--bstatusB4-color: var(--bstatusB1-color);
--bscoreA-color: box background for score A
--bscoreB-color: var(--bscoreA-color);
--brecordA-color: box background for record A
--brecordB-color: var(--brecordA-color);
--bcountryA-color: box background for country A
--bcountryB-color: var(--bcountryA-color);
--overlayA-color: background for overlay A
--overlayB-color: var(--overlayA-color);
--textnameA-color: font color for competitor A name
--textnameB-color: var(--textnameA-color);
--textscoreA-color: font color for score A
--textscoreB-color: var(--textscoreA-color);
--textcountryA-color: font color for country A
--textcountryB-color: var(--textcountryA-color);
--textrecordA-color: font color for record A
--textrecordB-color: var(--textrecordA-color);
--separatorA1-color: color for separator A1
--separatorA2-color: var(--separatorA1-color);
--separatorA3-color: var(--separatorA1-color);
--separatorB1-color: color for separator B1
--separatorB2-color: var(--separatorB1-color);
--separatorB3-color: var(--separatorB1-color);
}
Developers
The OBS Browser source will receive custom events that can be listened in JavaScript as follows:
<!DOCTYPE html>
<script type="text/javascript">
window.addEventListener('customEvent', function(event) {
console.log(event.detail) // outputs: {"key": value, "key", "value", ...}
})
</script>
Custom events
Event: slot_show
Content: {"slot": SLOT, "poke": "filename.png", "item": "filename.png"}
SLOT is String. Can be any of this values: "A1", "A2", "A3", "A4", "B1", "B2", "B3", "B4"
filename is String that finish with ".png". Can be any Pokémon ID/Item ID of the resource folder: "313_000.png", "128_002.png", ...
Event: slot_reset
Content: {"slot": SLOT}
SLOT is String. Can be any of this values: "A1", "A2", "A3", "A4", "B1", "B2", "B3", "B4"
Event: slot_hp
Content: {"slot": SLOT, "hp": FLOAT}
SLOT is String. Can be any of this values: "A1", "A2", "A3", "A4", "B1", "B2", "B3", "B4"
FLOAT from 0 to 1
Event: details
Content: {"nameA": "String", "recordA", "String", "countryA": "String", "nameB": "String", "recordB", "String", "countryB": "String"}
Be careful, any String can be "UNDEFINIED"
Event: controls
Content: {"data": DATA}
DATA is String. Can be any of this values: "show", "AP", "AS", "BP", "BS", "reset"
AP: player A score Add
AS: Player A score Substract
BP: player B score Add
BS: player B score Substract
reset: Reset scores
show: overlay visibility
Event: status
Content: {"slot": SLOT, "status": NAME}
SLOT is String. Can be any of this values: "A1", "A2", "A3", "A4", "B1", "B2", "B3", "B4"
NAME is String. Can be any of this values: "burn", "sleep", "paralysis", "freeze", "poison"
Event: faint
Content: {"slot": SLOT}
SLOT is String. Can be any of this values: "A1", "A2", "A3", "A4", "B1", "B2", "B3", "B4"