├── README.md ├── common ├── on_actions │ └── pie_chart_on_actions.txt ├── scripted_effects │ └── pie_chart_scripted_effects.txt └── scripted_guis │ └── pie_chart_scripted_gui.txt ├── gfx └── interface │ └── pie_chart_segment.dds ├── interface ├── pie_chart.gfx └── pie_chart.gui └── pie_chart.mod /README.md: -------------------------------------------------------------------------------- 1 | # HoI4-Scripted-GUI-Pie-Chart 2 | An example way of how to implement a Scripted GUI pie chart in Hearts of Iron 4. 3 | 4 | ![Showcase GIF](https://thumbs.gfycat.com/UnnaturalInconsequentialEsok-size_restricted.gif) 5 | 6 | A pie segment iconType equivalent to a 1/100 of the entire pie is created 100 times, each time with a 3.6 degree rotation, creating a full pie in the end. The texture contains frames - and which frame is shown is controlled by a 100 element `pie_chart` array, with each element corresponding to an iconType. The `create_pie_chart` scripted effect is used to create the `pie_chart` array, updating the pie chart. In this example, it is called daily. 7 | 8 | The pie chart can be easily resized with `scale` argument in the .gui file. Changing the number of possible colors is also easy - one just needs to add/remove frames from the `gfx/interface/pie_chart_segment.dds` texture, and update the .gfx entry and the `create_pie_chart` scripted effect. This pie chart can be used to represent any values adding up to 100% - in this example, vanilla party popularities are used. 9 | 10 | You may overlay a pie chart overlay onto this pie chart, to make it look nicer. 11 | 12 | Feel free to use in your mods, but give credits to Yard1 (both in code, with comments; and on your download page). -------------------------------------------------------------------------------- /common/on_actions/pie_chart_on_actions.txt: -------------------------------------------------------------------------------- 1 | # Scripted GUI Pie Chart example by Yard1 2 | # Feel free to use in your mods, but give credits to Yard1 (both in code, with comments; and on your download page) 3 | 4 | # This is just an example of how to update the pie chart, it does not need to be an on_action 5 | on_actions = { 6 | on_daily = { 7 | effect = { 8 | if = { 9 | limit = { is_ai = no } 10 | create_pie_chart = yes 11 | } 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /common/scripted_effects/pie_chart_scripted_effects.txt: -------------------------------------------------------------------------------- 1 | # Scripted GUI Pie Chart example by Yard1 2 | # Feel free to use in your mods, but give credits to Yard1 (both in code, with comments; and on your download page) 3 | 4 | # this creates a pie chart of popularities - can be easily adapted to show anything that adds up to 100% 5 | create_pie_chart = { 6 | clear_array = pie_chart 7 | resize_array = { 8 | array = pie_chart 9 | value = 1 # 1 is value for neutrality frame, so we don't have to make a loop for it 10 | size = 100 # 100 pieces, each percent is one piece 11 | } 12 | set_temp_variable = { neutrality_pop = party_popularity@neutrality } 13 | multiply_temp_variable = { neutrality_pop = 100 } 14 | round_temp_variable = neutrality_pop 15 | 16 | set_temp_variable = { communism_pop = party_popularity@communism } 17 | multiply_temp_variable = { communism_pop = 100 } 18 | round_temp_variable = communism_pop 19 | set_variable = { ROOT.last_idx = neutrality_pop } 20 | add_to_temp_variable = { communism_pop = ROOT.last_idx } 21 | for_loop_effect = { 22 | start = ROOT.last_idx 23 | end = communism_pop 24 | set_variable = { pie_chart^v = 2 } 25 | add_to_variable = { ROOT.last_idx = 1 } 26 | } 27 | 28 | set_temp_variable = { democratic_pop = party_popularity@democratic } 29 | multiply_temp_variable = { democratic_pop = 100 } 30 | round_temp_variable = democratic_pop 31 | add_to_temp_variable = { democratic_pop = ROOT.last_idx } 32 | for_loop_effect = { 33 | start = ROOT.last_idx 34 | end = democratic_pop 35 | set_variable = { pie_chart^v = 3 } 36 | add_to_variable = { ROOT.last_idx = 1 } 37 | } 38 | 39 | set_temp_variable = { fascism_pop = party_popularity@fascism } 40 | multiply_temp_variable = { fascism_pop = 100 } 41 | round_temp_variable = fascism_pop 42 | add_to_temp_variable = { fascism_pop = ROOT.last_idx } 43 | for_loop_effect = { 44 | start = ROOT.last_idx 45 | end = fascism_pop 46 | set_variable = { pie_chart^v = 4 } 47 | } 48 | 49 | clear_variable = ROOT.last_idx 50 | add_to_variable = { pie_chart_dirty = 1 } 51 | } -------------------------------------------------------------------------------- /common/scripted_guis/pie_chart_scripted_gui.txt: -------------------------------------------------------------------------------- 1 | # Scripted GUI Pie Chart example by Yard1 2 | # Feel free to use in your mods, but give credits to Yard1 (both in code, with comments; and on your download page) 3 | 4 | scripted_gui = { 5 | 6 | pie_chart_sg = { 7 | window_name = "pie_container" 8 | 9 | visible = { 10 | is_ai = no 11 | } 12 | 13 | ai_enabled = { 14 | always = no 15 | } 16 | 17 | dirty = pie_chart_dirty 18 | 19 | properties = { 20 | pie0 = { frame = pie_chart^0 } 21 | pie1 = { frame = pie_chart^1 } 22 | pie2 = { frame = pie_chart^2 } 23 | pie3 = { frame = pie_chart^3 } 24 | pie4 = { frame = pie_chart^4 } 25 | pie5 = { frame = pie_chart^5 } 26 | pie6 = { frame = pie_chart^6 } 27 | pie7 = { frame = pie_chart^7 } 28 | pie8 = { frame = pie_chart^8 } 29 | pie9 = { frame = pie_chart^9 } 30 | pie10 = { frame = pie_chart^10 } 31 | pie11 = { frame = pie_chart^11 } 32 | pie12 = { frame = pie_chart^12 } 33 | pie13 = { frame = pie_chart^13 } 34 | pie14 = { frame = pie_chart^14 } 35 | pie15 = { frame = pie_chart^15 } 36 | pie16 = { frame = pie_chart^16 } 37 | pie17 = { frame = pie_chart^17 } 38 | pie18 = { frame = pie_chart^18 } 39 | pie19 = { frame = pie_chart^19 } 40 | pie20 = { frame = pie_chart^20 } 41 | pie21 = { frame = pie_chart^21 } 42 | pie22 = { frame = pie_chart^22 } 43 | pie23 = { frame = pie_chart^23 } 44 | pie24 = { frame = pie_chart^24 } 45 | pie25 = { frame = pie_chart^25 } 46 | pie26 = { frame = pie_chart^26 } 47 | pie27 = { frame = pie_chart^27 } 48 | pie28 = { frame = pie_chart^28 } 49 | pie29 = { frame = pie_chart^29 } 50 | pie30 = { frame = pie_chart^30 } 51 | pie31 = { frame = pie_chart^31 } 52 | pie32 = { frame = pie_chart^32 } 53 | pie33 = { frame = pie_chart^33 } 54 | pie34 = { frame = pie_chart^34 } 55 | pie35 = { frame = pie_chart^35 } 56 | pie36 = { frame = pie_chart^36 } 57 | pie37 = { frame = pie_chart^37 } 58 | pie38 = { frame = pie_chart^38 } 59 | pie39 = { frame = pie_chart^39 } 60 | pie40 = { frame = pie_chart^40 } 61 | pie41 = { frame = pie_chart^41 } 62 | pie42 = { frame = pie_chart^42 } 63 | pie43 = { frame = pie_chart^43 } 64 | pie44 = { frame = pie_chart^44 } 65 | pie45 = { frame = pie_chart^45 } 66 | pie46 = { frame = pie_chart^46 } 67 | pie47 = { frame = pie_chart^47 } 68 | pie48 = { frame = pie_chart^48 } 69 | pie49 = { frame = pie_chart^49 } 70 | pie50 = { frame = pie_chart^50 } 71 | pie51 = { frame = pie_chart^51 } 72 | pie52 = { frame = pie_chart^52 } 73 | pie53 = { frame = pie_chart^53 } 74 | pie54 = { frame = pie_chart^54 } 75 | pie55 = { frame = pie_chart^55 } 76 | pie56 = { frame = pie_chart^56 } 77 | pie57 = { frame = pie_chart^57 } 78 | pie58 = { frame = pie_chart^58 } 79 | pie59 = { frame = pie_chart^59 } 80 | pie60 = { frame = pie_chart^60 } 81 | pie61 = { frame = pie_chart^61 } 82 | pie62 = { frame = pie_chart^62 } 83 | pie63 = { frame = pie_chart^63 } 84 | pie64 = { frame = pie_chart^64 } 85 | pie65 = { frame = pie_chart^65 } 86 | pie66 = { frame = pie_chart^66 } 87 | pie67 = { frame = pie_chart^67 } 88 | pie68 = { frame = pie_chart^68 } 89 | pie69 = { frame = pie_chart^69 } 90 | pie70 = { frame = pie_chart^70 } 91 | pie71 = { frame = pie_chart^71 } 92 | pie72 = { frame = pie_chart^72 } 93 | pie73 = { frame = pie_chart^73 } 94 | pie74 = { frame = pie_chart^74 } 95 | pie75 = { frame = pie_chart^75 } 96 | pie76 = { frame = pie_chart^76 } 97 | pie77 = { frame = pie_chart^77 } 98 | pie78 = { frame = pie_chart^78 } 99 | pie79 = { frame = pie_chart^79 } 100 | pie80 = { frame = pie_chart^80 } 101 | pie81 = { frame = pie_chart^81 } 102 | pie82 = { frame = pie_chart^82 } 103 | pie83 = { frame = pie_chart^83 } 104 | pie84 = { frame = pie_chart^84 } 105 | pie85 = { frame = pie_chart^85 } 106 | pie86 = { frame = pie_chart^86 } 107 | pie87 = { frame = pie_chart^87 } 108 | pie88 = { frame = pie_chart^88 } 109 | pie89 = { frame = pie_chart^89 } 110 | pie90 = { frame = pie_chart^90 } 111 | pie91 = { frame = pie_chart^91 } 112 | pie92 = { frame = pie_chart^92 } 113 | pie93 = { frame = pie_chart^93 } 114 | pie94 = { frame = pie_chart^94 } 115 | pie95 = { frame = pie_chart^95 } 116 | pie96 = { frame = pie_chart^96 } 117 | pie97 = { frame = pie_chart^97 } 118 | pie98 = { frame = pie_chart^98 } 119 | pie99 = { frame = pie_chart^99 } 120 | } 121 | 122 | } 123 | 124 | } 125 | 126 | -------------------------------------------------------------------------------- /gfx/interface/pie_chart_segment.dds: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yard1/HoI4-Scripted-GUI-Pie-Chart/e1e546da026274730721d4900a16f84981c3d0ac/gfx/interface/pie_chart_segment.dds -------------------------------------------------------------------------------- /interface/pie_chart.gfx: -------------------------------------------------------------------------------- 1 | # Scripted GUI Pie Chart example by Yard1 2 | # Feel free to use in your mods, but give credits to Yard1 (both in code, with comments; and on your download page) 3 | 4 | spriteTypes = { 5 | spriteType = { 6 | name = "GFX_pie_chart_segment" 7 | texturefile = "gfx//interface//pie_chart_segment.dds" 8 | noOfFrames = 4 # change to how many frames you have, index starts at 1 9 | } 10 | } -------------------------------------------------------------------------------- /interface/pie_chart.gui: -------------------------------------------------------------------------------- 1 | # Scripted GUI Pie Chart example by Yard1 2 | # Feel free to use in your mods, but give credits to Yard1 (both in code, with comments; and on your download page) 3 | 4 | guiTypes = { 5 | containerWindowType = { 6 | name = "pie_container" 7 | position = { x=0 y =0 } 8 | clipping = no 9 | Orientation = center 10 | origo = center 11 | scale = 0.0693359 # scale = 1 = 1024px x 1024px 12 | 13 | 14 | iconType = { 15 | name = "pie0" 16 | quadTextureSprite = "GFX_pie_chart_segment" 17 | centerPosition = yes 18 | alwaystransparent = yes 19 | rotation = 0 20 | } 21 | 22 | iconType = { 23 | name = "pie1" 24 | quadTextureSprite = "GFX_pie_chart_segment" 25 | centerPosition = yes 26 | alwaystransparent = yes 27 | rotation = 0.0628318531 28 | } 29 | 30 | 31 | iconType = { 32 | name = "pie2" 33 | quadTextureSprite = "GFX_pie_chart_segment" 34 | centerPosition = yes 35 | alwaystransparent = yes 36 | rotation = 0.1256637061 37 | } 38 | 39 | 40 | iconType = { 41 | name = "pie3" 42 | quadTextureSprite = "GFX_pie_chart_segment" 43 | centerPosition = yes 44 | alwaystransparent = yes 45 | rotation = 0.1884955592 46 | } 47 | 48 | 49 | iconType = { 50 | name = "pie4" 51 | quadTextureSprite = "GFX_pie_chart_segment" 52 | centerPosition = yes 53 | alwaystransparent = yes 54 | rotation = 0.2513274123 55 | } 56 | 57 | 58 | iconType = { 59 | name = "pie5" 60 | quadTextureSprite = "GFX_pie_chart_segment" 61 | centerPosition = yes 62 | alwaystransparent = yes 63 | rotation = 0.3141592654 64 | } 65 | 66 | 67 | iconType = { 68 | name = "pie6" 69 | quadTextureSprite = "GFX_pie_chart_segment" 70 | centerPosition = yes 71 | alwaystransparent = yes 72 | rotation = 0.3769911184 73 | } 74 | 75 | 76 | iconType = { 77 | name = "pie7" 78 | quadTextureSprite = "GFX_pie_chart_segment" 79 | centerPosition = yes 80 | alwaystransparent = yes 81 | rotation = 0.4398229715 82 | } 83 | 84 | 85 | iconType = { 86 | name = "pie8" 87 | quadTextureSprite = "GFX_pie_chart_segment" 88 | centerPosition = yes 89 | alwaystransparent = yes 90 | rotation = 0.5026548246 91 | } 92 | 93 | 94 | iconType = { 95 | name = "pie9" 96 | quadTextureSprite = "GFX_pie_chart_segment" 97 | centerPosition = yes 98 | alwaystransparent = yes 99 | rotation = 0.5654866776 100 | } 101 | 102 | 103 | iconType = { 104 | name = "pie10" 105 | quadTextureSprite = "GFX_pie_chart_segment" 106 | centerPosition = yes 107 | alwaystransparent = yes 108 | rotation = 0.6283185307 109 | } 110 | 111 | 112 | iconType = { 113 | name = "pie11" 114 | quadTextureSprite = "GFX_pie_chart_segment" 115 | centerPosition = yes 116 | alwaystransparent = yes 117 | rotation = 0.6911503838 118 | } 119 | 120 | 121 | iconType = { 122 | name = "pie12" 123 | quadTextureSprite = "GFX_pie_chart_segment" 124 | centerPosition = yes 125 | alwaystransparent = yes 126 | rotation = 0.7539822369 127 | } 128 | 129 | 130 | iconType = { 131 | name = "pie13" 132 | quadTextureSprite = "GFX_pie_chart_segment" 133 | centerPosition = yes 134 | alwaystransparent = yes 135 | rotation = 0.8168140899 136 | } 137 | 138 | 139 | iconType = { 140 | name = "pie14" 141 | quadTextureSprite = "GFX_pie_chart_segment" 142 | centerPosition = yes 143 | alwaystransparent = yes 144 | rotation = 0.8796459430 145 | } 146 | 147 | 148 | iconType = { 149 | name = "pie15" 150 | quadTextureSprite = "GFX_pie_chart_segment" 151 | centerPosition = yes 152 | alwaystransparent = yes 153 | rotation = 0.9424777961 154 | } 155 | 156 | 157 | iconType = { 158 | name = "pie16" 159 | quadTextureSprite = "GFX_pie_chart_segment" 160 | centerPosition = yes 161 | alwaystransparent = yes 162 | rotation = 1.0053096491 163 | } 164 | 165 | 166 | iconType = { 167 | name = "pie17" 168 | quadTextureSprite = "GFX_pie_chart_segment" 169 | centerPosition = yes 170 | alwaystransparent = yes 171 | rotation = 1.0681415022 172 | } 173 | 174 | 175 | iconType = { 176 | name = "pie18" 177 | quadTextureSprite = "GFX_pie_chart_segment" 178 | centerPosition = yes 179 | alwaystransparent = yes 180 | rotation = 1.1309733553 181 | } 182 | 183 | 184 | iconType = { 185 | name = "pie19" 186 | quadTextureSprite = "GFX_pie_chart_segment" 187 | centerPosition = yes 188 | alwaystransparent = yes 189 | rotation = 1.1938052084 190 | } 191 | 192 | 193 | iconType = { 194 | name = "pie20" 195 | quadTextureSprite = "GFX_pie_chart_segment" 196 | centerPosition = yes 197 | alwaystransparent = yes 198 | rotation = 1.2566370614 199 | } 200 | 201 | 202 | iconType = { 203 | name = "pie21" 204 | quadTextureSprite = "GFX_pie_chart_segment" 205 | centerPosition = yes 206 | alwaystransparent = yes 207 | rotation = 1.3194689145 208 | } 209 | 210 | 211 | iconType = { 212 | name = "pie22" 213 | quadTextureSprite = "GFX_pie_chart_segment" 214 | centerPosition = yes 215 | alwaystransparent = yes 216 | rotation = 1.3823007676 217 | } 218 | 219 | 220 | iconType = { 221 | name = "pie23" 222 | quadTextureSprite = "GFX_pie_chart_segment" 223 | centerPosition = yes 224 | alwaystransparent = yes 225 | rotation = 1.4451326207 226 | } 227 | 228 | 229 | iconType = { 230 | name = "pie24" 231 | quadTextureSprite = "GFX_pie_chart_segment" 232 | centerPosition = yes 233 | alwaystransparent = yes 234 | rotation = 1.5079644737 235 | } 236 | 237 | 238 | iconType = { 239 | name = "pie25" 240 | quadTextureSprite = "GFX_pie_chart_segment" 241 | centerPosition = yes 242 | alwaystransparent = yes 243 | rotation = 1.5707963268 244 | } 245 | 246 | 247 | iconType = { 248 | name = "pie26" 249 | quadTextureSprite = "GFX_pie_chart_segment" 250 | centerPosition = yes 251 | alwaystransparent = yes 252 | rotation = 1.6336281799 253 | } 254 | 255 | 256 | iconType = { 257 | name = "pie27" 258 | quadTextureSprite = "GFX_pie_chart_segment" 259 | centerPosition = yes 260 | alwaystransparent = yes 261 | rotation = 1.6964600329 262 | } 263 | 264 | 265 | iconType = { 266 | name = "pie28" 267 | quadTextureSprite = "GFX_pie_chart_segment" 268 | centerPosition = yes 269 | alwaystransparent = yes 270 | rotation = 1.7592918860 271 | } 272 | 273 | 274 | iconType = { 275 | name = "pie29" 276 | quadTextureSprite = "GFX_pie_chart_segment" 277 | centerPosition = yes 278 | alwaystransparent = yes 279 | rotation = 1.8221237391 280 | } 281 | 282 | 283 | iconType = { 284 | name = "pie30" 285 | quadTextureSprite = "GFX_pie_chart_segment" 286 | centerPosition = yes 287 | alwaystransparent = yes 288 | rotation = 1.8849555922 289 | } 290 | 291 | 292 | iconType = { 293 | name = "pie31" 294 | quadTextureSprite = "GFX_pie_chart_segment" 295 | centerPosition = yes 296 | alwaystransparent = yes 297 | rotation = 1.9477874452 298 | } 299 | 300 | 301 | iconType = { 302 | name = "pie32" 303 | quadTextureSprite = "GFX_pie_chart_segment" 304 | centerPosition = yes 305 | alwaystransparent = yes 306 | rotation = 2.0106192983 307 | } 308 | 309 | 310 | iconType = { 311 | name = "pie33" 312 | quadTextureSprite = "GFX_pie_chart_segment" 313 | centerPosition = yes 314 | alwaystransparent = yes 315 | rotation = 2.0734511514 316 | } 317 | 318 | 319 | iconType = { 320 | name = "pie34" 321 | quadTextureSprite = "GFX_pie_chart_segment" 322 | centerPosition = yes 323 | alwaystransparent = yes 324 | rotation = 2.1362830044 325 | } 326 | 327 | 328 | iconType = { 329 | name = "pie35" 330 | quadTextureSprite = "GFX_pie_chart_segment" 331 | centerPosition = yes 332 | alwaystransparent = yes 333 | rotation = 2.1991148575 334 | } 335 | 336 | 337 | iconType = { 338 | name = "pie36" 339 | quadTextureSprite = "GFX_pie_chart_segment" 340 | centerPosition = yes 341 | alwaystransparent = yes 342 | rotation = 2.2619467106 343 | } 344 | 345 | 346 | iconType = { 347 | name = "pie37" 348 | quadTextureSprite = "GFX_pie_chart_segment" 349 | centerPosition = yes 350 | alwaystransparent = yes 351 | rotation = 2.3247785637 352 | } 353 | 354 | 355 | iconType = { 356 | name = "pie38" 357 | quadTextureSprite = "GFX_pie_chart_segment" 358 | centerPosition = yes 359 | alwaystransparent = yes 360 | rotation = 2.3876104167 361 | } 362 | 363 | 364 | iconType = { 365 | name = "pie39" 366 | quadTextureSprite = "GFX_pie_chart_segment" 367 | centerPosition = yes 368 | alwaystransparent = yes 369 | rotation = 2.4504422698 370 | } 371 | 372 | 373 | iconType = { 374 | name = "pie40" 375 | quadTextureSprite = "GFX_pie_chart_segment" 376 | centerPosition = yes 377 | alwaystransparent = yes 378 | rotation = 2.5132741229 379 | } 380 | 381 | 382 | iconType = { 383 | name = "pie41" 384 | quadTextureSprite = "GFX_pie_chart_segment" 385 | centerPosition = yes 386 | alwaystransparent = yes 387 | rotation = 2.5761059759 388 | } 389 | 390 | 391 | iconType = { 392 | name = "pie42" 393 | quadTextureSprite = "GFX_pie_chart_segment" 394 | centerPosition = yes 395 | alwaystransparent = yes 396 | rotation = 2.6389378290 397 | } 398 | 399 | 400 | iconType = { 401 | name = "pie43" 402 | quadTextureSprite = "GFX_pie_chart_segment" 403 | centerPosition = yes 404 | alwaystransparent = yes 405 | rotation = 2.7017696821 406 | } 407 | 408 | 409 | iconType = { 410 | name = "pie44" 411 | quadTextureSprite = "GFX_pie_chart_segment" 412 | centerPosition = yes 413 | alwaystransparent = yes 414 | rotation = 2.7646015352 415 | } 416 | 417 | 418 | iconType = { 419 | name = "pie45" 420 | quadTextureSprite = "GFX_pie_chart_segment" 421 | centerPosition = yes 422 | alwaystransparent = yes 423 | rotation = 2.8274333882 424 | } 425 | 426 | 427 | iconType = { 428 | name = "pie46" 429 | quadTextureSprite = "GFX_pie_chart_segment" 430 | centerPosition = yes 431 | alwaystransparent = yes 432 | rotation = 2.8902652413 433 | } 434 | 435 | 436 | iconType = { 437 | name = "pie47" 438 | quadTextureSprite = "GFX_pie_chart_segment" 439 | centerPosition = yes 440 | alwaystransparent = yes 441 | rotation = 2.9530970944 442 | } 443 | 444 | 445 | iconType = { 446 | name = "pie48" 447 | quadTextureSprite = "GFX_pie_chart_segment" 448 | centerPosition = yes 449 | alwaystransparent = yes 450 | rotation = 3.0159289474 451 | } 452 | 453 | 454 | iconType = { 455 | name = "pie49" 456 | quadTextureSprite = "GFX_pie_chart_segment" 457 | centerPosition = yes 458 | alwaystransparent = yes 459 | rotation = 3.0787608005 460 | } 461 | 462 | 463 | iconType = { 464 | name = "pie50" 465 | quadTextureSprite = "GFX_pie_chart_segment" 466 | centerPosition = yes 467 | alwaystransparent = yes 468 | rotation = 3.1415926536 469 | } 470 | 471 | 472 | iconType = { 473 | name = "pie51" 474 | quadTextureSprite = "GFX_pie_chart_segment" 475 | centerPosition = yes 476 | alwaystransparent = yes 477 | rotation = 3.2044245067 478 | } 479 | 480 | 481 | iconType = { 482 | name = "pie52" 483 | quadTextureSprite = "GFX_pie_chart_segment" 484 | centerPosition = yes 485 | alwaystransparent = yes 486 | rotation = 3.2672563597 487 | } 488 | 489 | 490 | iconType = { 491 | name = "pie53" 492 | quadTextureSprite = "GFX_pie_chart_segment" 493 | centerPosition = yes 494 | alwaystransparent = yes 495 | rotation = 3.3300882128 496 | } 497 | 498 | 499 | iconType = { 500 | name = "pie54" 501 | quadTextureSprite = "GFX_pie_chart_segment" 502 | centerPosition = yes 503 | alwaystransparent = yes 504 | rotation = 3.3929200659 505 | } 506 | 507 | 508 | iconType = { 509 | name = "pie55" 510 | quadTextureSprite = "GFX_pie_chart_segment" 511 | centerPosition = yes 512 | alwaystransparent = yes 513 | rotation = 3.4557519189 514 | } 515 | 516 | 517 | iconType = { 518 | name = "pie56" 519 | quadTextureSprite = "GFX_pie_chart_segment" 520 | centerPosition = yes 521 | alwaystransparent = yes 522 | rotation = 3.5185837720 523 | } 524 | 525 | 526 | iconType = { 527 | name = "pie57" 528 | quadTextureSprite = "GFX_pie_chart_segment" 529 | centerPosition = yes 530 | alwaystransparent = yes 531 | rotation = 3.5814156251 532 | } 533 | 534 | 535 | iconType = { 536 | name = "pie58" 537 | quadTextureSprite = "GFX_pie_chart_segment" 538 | centerPosition = yes 539 | alwaystransparent = yes 540 | rotation = 3.6442474782 541 | } 542 | 543 | 544 | iconType = { 545 | name = "pie59" 546 | quadTextureSprite = "GFX_pie_chart_segment" 547 | centerPosition = yes 548 | alwaystransparent = yes 549 | rotation = 3.7070793312 550 | } 551 | 552 | 553 | iconType = { 554 | name = "pie60" 555 | quadTextureSprite = "GFX_pie_chart_segment" 556 | centerPosition = yes 557 | alwaystransparent = yes 558 | rotation = 3.7699111843 559 | } 560 | 561 | 562 | iconType = { 563 | name = "pie61" 564 | quadTextureSprite = "GFX_pie_chart_segment" 565 | centerPosition = yes 566 | alwaystransparent = yes 567 | rotation = 3.8327430374 568 | } 569 | 570 | 571 | iconType = { 572 | name = "pie62" 573 | quadTextureSprite = "GFX_pie_chart_segment" 574 | centerPosition = yes 575 | alwaystransparent = yes 576 | rotation = 3.8955748905 577 | } 578 | 579 | 580 | iconType = { 581 | name = "pie63" 582 | quadTextureSprite = "GFX_pie_chart_segment" 583 | centerPosition = yes 584 | alwaystransparent = yes 585 | rotation = 3.9584067435 586 | } 587 | 588 | 589 | iconType = { 590 | name = "pie64" 591 | quadTextureSprite = "GFX_pie_chart_segment" 592 | centerPosition = yes 593 | alwaystransparent = yes 594 | rotation = 4.0212385966 595 | } 596 | 597 | 598 | iconType = { 599 | name = "pie65" 600 | quadTextureSprite = "GFX_pie_chart_segment" 601 | centerPosition = yes 602 | alwaystransparent = yes 603 | rotation = 4.0840704497 604 | } 605 | 606 | 607 | iconType = { 608 | name = "pie66" 609 | quadTextureSprite = "GFX_pie_chart_segment" 610 | centerPosition = yes 611 | alwaystransparent = yes 612 | rotation = 4.1469023027 613 | } 614 | 615 | 616 | iconType = { 617 | name = "pie67" 618 | quadTextureSprite = "GFX_pie_chart_segment" 619 | centerPosition = yes 620 | alwaystransparent = yes 621 | rotation = 4.2097341558 622 | } 623 | 624 | 625 | iconType = { 626 | name = "pie68" 627 | quadTextureSprite = "GFX_pie_chart_segment" 628 | centerPosition = yes 629 | alwaystransparent = yes 630 | rotation = 4.2725660089 631 | } 632 | 633 | 634 | iconType = { 635 | name = "pie69" 636 | quadTextureSprite = "GFX_pie_chart_segment" 637 | centerPosition = yes 638 | alwaystransparent = yes 639 | rotation = 4.3353978620 640 | } 641 | 642 | 643 | iconType = { 644 | name = "pie70" 645 | quadTextureSprite = "GFX_pie_chart_segment" 646 | centerPosition = yes 647 | alwaystransparent = yes 648 | rotation = 4.3982297150 649 | } 650 | 651 | 652 | iconType = { 653 | name = "pie71" 654 | quadTextureSprite = "GFX_pie_chart_segment" 655 | centerPosition = yes 656 | alwaystransparent = yes 657 | rotation = 4.4610615681 658 | } 659 | 660 | 661 | iconType = { 662 | name = "pie72" 663 | quadTextureSprite = "GFX_pie_chart_segment" 664 | centerPosition = yes 665 | alwaystransparent = yes 666 | rotation = 4.5238934212 667 | } 668 | 669 | 670 | iconType = { 671 | name = "pie73" 672 | quadTextureSprite = "GFX_pie_chart_segment" 673 | centerPosition = yes 674 | alwaystransparent = yes 675 | rotation = 4.5867252742 676 | } 677 | 678 | 679 | iconType = { 680 | name = "pie74" 681 | quadTextureSprite = "GFX_pie_chart_segment" 682 | centerPosition = yes 683 | alwaystransparent = yes 684 | rotation = 4.6495571273 685 | } 686 | 687 | 688 | iconType = { 689 | name = "pie75" 690 | quadTextureSprite = "GFX_pie_chart_segment" 691 | centerPosition = yes 692 | alwaystransparent = yes 693 | rotation = 4.7123889804 694 | } 695 | 696 | 697 | iconType = { 698 | name = "pie76" 699 | quadTextureSprite = "GFX_pie_chart_segment" 700 | centerPosition = yes 701 | alwaystransparent = yes 702 | rotation = 4.7752208335 703 | } 704 | 705 | 706 | iconType = { 707 | name = "pie77" 708 | quadTextureSprite = "GFX_pie_chart_segment" 709 | centerPosition = yes 710 | alwaystransparent = yes 711 | rotation = 4.8380526865 712 | } 713 | 714 | 715 | iconType = { 716 | name = "pie78" 717 | quadTextureSprite = "GFX_pie_chart_segment" 718 | centerPosition = yes 719 | alwaystransparent = yes 720 | rotation = 4.9008845396 721 | } 722 | 723 | 724 | iconType = { 725 | name = "pie79" 726 | quadTextureSprite = "GFX_pie_chart_segment" 727 | centerPosition = yes 728 | alwaystransparent = yes 729 | rotation = 4.9637163927 730 | } 731 | 732 | 733 | iconType = { 734 | name = "pie80" 735 | quadTextureSprite = "GFX_pie_chart_segment" 736 | centerPosition = yes 737 | alwaystransparent = yes 738 | rotation = 5.0265482457 739 | } 740 | 741 | 742 | iconType = { 743 | name = "pie81" 744 | quadTextureSprite = "GFX_pie_chart_segment" 745 | centerPosition = yes 746 | alwaystransparent = yes 747 | rotation = 5.0893800988 748 | } 749 | 750 | 751 | iconType = { 752 | name = "pie82" 753 | quadTextureSprite = "GFX_pie_chart_segment" 754 | centerPosition = yes 755 | alwaystransparent = yes 756 | rotation = 5.1522119519 757 | } 758 | 759 | 760 | iconType = { 761 | name = "pie83" 762 | quadTextureSprite = "GFX_pie_chart_segment" 763 | centerPosition = yes 764 | alwaystransparent = yes 765 | rotation = 5.2150438050 766 | } 767 | 768 | 769 | iconType = { 770 | name = "pie84" 771 | quadTextureSprite = "GFX_pie_chart_segment" 772 | centerPosition = yes 773 | alwaystransparent = yes 774 | rotation = 5.2778756580 775 | } 776 | 777 | 778 | iconType = { 779 | name = "pie85" 780 | quadTextureSprite = "GFX_pie_chart_segment" 781 | centerPosition = yes 782 | alwaystransparent = yes 783 | rotation = 5.3407075111 784 | } 785 | 786 | 787 | iconType = { 788 | name = "pie86" 789 | quadTextureSprite = "GFX_pie_chart_segment" 790 | centerPosition = yes 791 | alwaystransparent = yes 792 | rotation = 5.4035393642 793 | } 794 | 795 | 796 | iconType = { 797 | name = "pie87" 798 | quadTextureSprite = "GFX_pie_chart_segment" 799 | centerPosition = yes 800 | alwaystransparent = yes 801 | rotation = 5.4663712172 802 | } 803 | 804 | 805 | iconType = { 806 | name = "pie88" 807 | quadTextureSprite = "GFX_pie_chart_segment" 808 | centerPosition = yes 809 | alwaystransparent = yes 810 | rotation = 5.5292030703 811 | } 812 | 813 | 814 | iconType = { 815 | name = "pie89" 816 | quadTextureSprite = "GFX_pie_chart_segment" 817 | centerPosition = yes 818 | alwaystransparent = yes 819 | rotation = 5.5920349234 820 | } 821 | 822 | 823 | iconType = { 824 | name = "pie90" 825 | quadTextureSprite = "GFX_pie_chart_segment" 826 | centerPosition = yes 827 | alwaystransparent = yes 828 | rotation = 5.6548667765 829 | } 830 | 831 | 832 | iconType = { 833 | name = "pie91" 834 | quadTextureSprite = "GFX_pie_chart_segment" 835 | centerPosition = yes 836 | alwaystransparent = yes 837 | rotation = 5.7176986295 838 | } 839 | 840 | 841 | iconType = { 842 | name = "pie92" 843 | quadTextureSprite = "GFX_pie_chart_segment" 844 | centerPosition = yes 845 | alwaystransparent = yes 846 | rotation = 5.7805304826 847 | } 848 | 849 | 850 | iconType = { 851 | name = "pie93" 852 | quadTextureSprite = "GFX_pie_chart_segment" 853 | centerPosition = yes 854 | alwaystransparent = yes 855 | rotation = 5.8433623357 856 | } 857 | 858 | 859 | iconType = { 860 | name = "pie94" 861 | quadTextureSprite = "GFX_pie_chart_segment" 862 | centerPosition = yes 863 | alwaystransparent = yes 864 | rotation = 5.9061941887 865 | } 866 | 867 | 868 | iconType = { 869 | name = "pie95" 870 | quadTextureSprite = "GFX_pie_chart_segment" 871 | centerPosition = yes 872 | alwaystransparent = yes 873 | rotation = 5.9690260418 874 | } 875 | 876 | 877 | iconType = { 878 | name = "pie96" 879 | quadTextureSprite = "GFX_pie_chart_segment" 880 | centerPosition = yes 881 | alwaystransparent = yes 882 | rotation = 6.0318578949 883 | } 884 | 885 | 886 | iconType = { 887 | name = "pie97" 888 | quadTextureSprite = "GFX_pie_chart_segment" 889 | centerPosition = yes 890 | alwaystransparent = yes 891 | rotation = 6.0946897480 892 | } 893 | 894 | 895 | iconType = { 896 | name = "pie98" 897 | quadTextureSprite = "GFX_pie_chart_segment" 898 | centerPosition = yes 899 | alwaystransparent = yes 900 | rotation = 6.1575216010 901 | } 902 | 903 | 904 | iconType = { 905 | name = "pie99" 906 | quadTextureSprite = "GFX_pie_chart_segment" 907 | centerPosition = yes 908 | alwaystransparent = yes 909 | rotation = 6.2203534541 910 | } 911 | 912 | } 913 | } -------------------------------------------------------------------------------- /pie_chart.mod: -------------------------------------------------------------------------------- 1 | name="Scripted GUI Pie Chart Example" 2 | path="mod/HoI4-Scripted-GUI-Pie-Chart/" 3 | supported_version="1.9.*" 4 | --------------------------------------------------------------------------------