Skip to content

Instantly share code, notes, and snippets.

@meepen
Created September 23, 2019 09:49
Show Gist options
  • Select an option

  • Save meepen/8094e453199c28c6865ab136fa5045a3 to your computer and use it in GitHub Desktop.

Select an option

Save meepen/8094e453199c28c6865ab136fa5045a3 to your computer and use it in GitHub Desktop.

Revisions

  1. meepen created this gist Sep 23, 2019.
    173 changes: 173 additions & 0 deletions tttrw_default.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,173 @@
    [
    {
    "name": "SpectatingOverlay",
    "type": "ttt_curve_outline",
    "pos": [0.5, 0.1, 0],
    "size": [0.22, 0.04],
    "curve": 0.005,
    "bg_color": [154, 153, 153],
    "outline_color": [230, 230, 230],
    "disappear_no_target": true,
    "children": [
    {
    "name": "SpectatorText",
    "type": "ttt_text",
    "color": "white",
    "text": [
    "Spectating %s",
    "target_name"
    ],
    "font": {
    "size": 0.024,
    "font": "Lato",
    "weight": 1000
    },
    "dock": "fill"
    }
    ]
    },
    {
    "name": "HealthBackground",
    "type": "ttt_curve",
    "bg_color": "black_bg",
    "pos": [0.12, 0.9, 1],
    "size": [0.22, 0.04],
    "curve": 0.005,
    "children": [
    {
    "name": "HealthBar",
    "type": "ttt_curve_outline",
    "bg_color": {
    "func": "lerp",
    "frac": "health_frac",
    "points": [
    [200, 49, 59],
    [153, 129, 6],
    [59, 171, 91]
    ]
    },
    "outline_color": "white",
    "dock": "fill",
    "frac": "health_frac",
    "curve": 0.005,
    "children": [
    {
    "name": "HealthText",
    "type": "ttt_text",
    "color": "white",
    "text": [
    "%i / %i",
    "health",
    "health_max"
    ],
    "font": {
    "size": 0.024,
    "font": "Lato",
    "weight": 1000
    },
    "dock": "fill"
    }
    ]
    }
    ]
    },
    {
    "name": "RoleAndTimeBar",
    "type": "ttt_curve_outline",
    "pos": [0.12, 0.95, 0],
    "size": [0.22, 0.04],
    "curve": 0.005,
    "bg_color": "role",
    "outline_color": [230, 230, 230],
    "padding": [0.15, 0, 0.15, 0],
    "children": [
    {
    "name": "TimeText",
    "type": "ttt_text",
    "color": "white",
    "text": [
    "%s",
    "time_remaining_pretty"
    ],
    "font": {
    "size": 0.024,
    "font": "Lato",
    "weight": 1000
    },
    "dock": "fill",
    "align": "right"
    },
    {
    "name": "RoleText",
    "type": "ttt_text",
    "color": "white",
    "text": [
    "%s",
    "role_name"
    ],
    "font": {
    "size": 0.024,
    "font": "Lato",
    "weight": 1000
    },
    "dock": "fill",
    "align": "left"
    }
    ]
    },
    {
    "name": "AmmoBackground",
    "type": "ttt_curve",
    "bg_color": [0, 0, 0, 0],
    "pos": [0.915, 0.875],
    "size": [0.15, 0.2],
    "curve": 0.005,
    "children": [
    {
    "name": "AmmoClip",
    "type": "ttt_text",
    "color": "white",
    "text": [
    "%s",
    "clip_pretty"
    ],
    "font": {
    "size": 0.05,
    "font": "Lato",
    "weight": 1000
    },
    "dock": "top",
    "size": [0.15, 0.05],
    "pos": [0, 0, 0]
    },
    {
    "name": "AmmoReserves",
    "type": "ttt_text",
    "color": "white",
    "text": [
    "%s",
    "reserve_pretty"
    ],
    "font": {
    "size": 0.03,
    "font": "Lato",
    "weight": 1000
    },
    "dock": "top",
    "size": [0.15, 0.03],
    "pos": [0, 0, 1]
    },
    {
    "name": "WeaponShadow",
    "type": "ttt_weapon",
    "color": [0, 0, 0, 0],
    "dock": "fill",
    "color": "white"
    }
    ]
    },
    {
    "name": "WeaponSelect",
    "type": "ttt_weapon_select"
    }
    ]