<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ACircleImageSetFillParams</id>
	<title>API:CircleImageSetFillParams - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ACircleImageSetFillParams"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:CircleImageSetFillParams&amp;action=history"/>
	<updated>2026-10-17T11:08:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:CircleImageSetFillParams&amp;diff=30229&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:CircleImageSetFillParams&amp;diff=30229&amp;oldid=prev"/>
		<updated>2026-10-16T19:41:16Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=CircleImage}}&lt;br /&gt;
Sets which part of a CircleImage is drawn, as a pie-shaped arc.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CircleImageSetFillParams(imageName, startAngle, fillAngle)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;imageName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of a CircleImage window.&lt;br /&gt;
;startAngle : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Angle in degrees where the drawn arc begins.&lt;br /&gt;
;fillAngle : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Size of the arc in degrees. &amp;lt;code&amp;gt;360&amp;lt;/code&amp;gt; draws the full circle. This is the extent of the arc, not the angle where it ends.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Both angles are converted to radians and stored. If the image&amp;#039;s geometry already exists, it is rebuilt at once with the new arc.&lt;br /&gt;
* The stock UI uses it to draw a countdown ring that empties over time (see the example).&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;CircleImageSetFillParams&amp;#039;: Window %s does not exist&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;CircleImageSetFillParams&amp;#039;: Window %s is not a CircleImage&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;ea_playerstatuswindow/source/playerwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- Starts at 12 o&amp;#039;clock and decreases clockwise&lt;br /&gt;
local startFill = 360 * (1 - (PlayerWindow.KillingSpreeRemainingTime / PlayerWindow.KillingSpreeTotalTime))&lt;br /&gt;
CircleImageSetFillParams( &amp;quot;PlayerWindowKillingSpreeArc&amp;quot;, -96 + startFill,  360 - startFill )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:CircleImageSetRotation|CircleImageSetRotation]]&lt;br /&gt;
* [[API:CircleImageSetTexture|CircleImageSetTexture]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>