REQ: Wind Speed
Moderator: Moderators
REQ: Wind Speed
Could somebody make a small and simple widget which displays the current wind speed? Would be much appreciated so then I know when to go in for the pow pow with mai Com.
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2702
- Joined: 25 Aug 2004, 13:31
Re: REQ: Wind Speed
EDIT: I wish I knew what I was talking about.
Last edited by bobthedinosaur on 19 Jan 2010, 05:50, edited 1 time in total.
Re: REQ: Wind Speed
Spring.GetWind
( ) -> number dirX, number dirY, number dirZ,
number strength, number normDirX, number normDirY, number normDirZ
( ) -> number dirX, number dirY, number dirZ,
number strength, number normDirX, number normDirY, number normDirZ
Re: REQ: Wind Speed
do u mean the current energy output made by a windmill (if yes look at iceui and windcheck ) or the windspeed (?)
Re: REQ: Wind Speed
That's the average guess at the game start. I want a widget which shows the windspeed all the through the game updating in time with the windmills.manolo_ wrote:do u mean the current energy output made by a windmill (if yes look at iceui and windcheck ) or the windspeed (?)
Re: REQ: Wind Speed
If it's worth doing it's worth overdoing.
name = "Wind Helper",
desc =
Shows wind info and when to build wind.
The next wind vector turning point displays the immediate wind forecast.
Forecast text tells the forecast from integrated winds.
(current economy and wind mean affects what to build but not the forecasts)
The next spring version will break this widget.


name = "Wind Helper",
desc =
Shows wind info and when to build wind.
The next wind vector turning point displays the immediate wind forecast.
Forecast text tells the forecast from integrated winds.
(current economy and wind mean affects what to build but not the forecasts)
The next spring version will break this widget.


Last edited by Pako on 19 Jan 2010, 17:13, edited 2 times in total.
Re: REQ: Wind Speed
Very nice, I like it. Although, my GUI is chunked up already with stuff so I'd appreciate just the figure of current windspeed with maybe a pic of a windmill next to it to indicate what it is.
If you want to make it more cool an all, making it moveable, resizeable and recolourable would be awesome
If you want to make it more cool an all, making it moveable, resizeable and recolourable would be awesome

Re: REQ: Wind Speed
upload it to widgetdb (marked as hidden)
Re: REQ: Wind Speed
If you dont want to clog the interface an option is to just group 1 windmill to somewhere like 8-0, then checking it is just 1 keypress away. And its easy to ctrl-z from there to see your overall windmill count which is useful too.
Re: REQ: Wind Speed
Of course it must be moveable, resizeable and recolourable, why didn't I think of that.
(recolour by scrolling over the resize button)
(recolour by scrolling over the resize button)
Last edited by Pako on 20 Jan 2010, 23:58, edited 1 time in total.
Re: REQ: Wind Speed
Again, a simple version with just the wind speed would be more fitting for me. Here, I even made an icon for you'z



Re: REQ: Wind Speed

i often wished for this but imagined it too trivial to ask for.
Re: REQ: Wind Speed
Just add following code to any widget that doesn't have widget:DrawScreen() function.JAZCASH wrote:Again, a simple version with just the wind speed would be more fitting for me. Here, I even made an icon for you'z![]()
Code: Select all
function widget:DrawScreen()
gl.Color(1,1,1,1)
gl.Texture('LuaUI/Images/Windmill.png')
gl.TexRect(100,100,111,111)
gl.Texture(false)
local _, _, _, wind = Spring.GetWind()
gl.Text(wind, 100, 100, 14, "ao")
end
Re: REQ: Wind Speed
Exactly what I wanted but with one decimal place instead of 13 or soPako wrote:Just add following code to any widget that doesn't have widget:DrawScreen() function.JAZCASH wrote:Again, a simple version with just the wind speed would be more fitting for me. Here, I even made an icon for you'z![]()
Code: Select all
function widget:DrawScreen() gl.Color(1,1,1,1) gl.Texture('LuaUI/Images/Windmill.png') gl.TexRect(100,100,111,111) gl.Texture(false) local _, _, _, wind = Spring.GetWind() gl.Text(wind, 100, 100, 14, "ao") end


Re: REQ: Wind Speed
I'm sure you can manage to adjust the locations yourself. To make it one decimal place, change the text line's 'wind' to 'string.format("%.1f",wind)'.
- Spawn_Retard
- Posts: 1248
- Joined: 21 Dec 2006, 14:36
Re: REQ: Wind Speed
This widget is sex.Pako wrote:If it's worth doing it's worth overdoing.
name = "Wind Helper",
desc = "Shows wind info and when to build wind.
The next wind vector turning point displays the immediate wind forecast.
Forecast text tells the forecast from integrated winds.\n(current economy and wind mean affects what to build but not the forecasts)",
Re: REQ: Wind Speed
it is not going to BREAK anything, you just need to adjust your equation.
- Spawn_Retard
- Posts: 1248
- Joined: 21 Dec 2006, 14:36
Re: REQ: Wind Speed
please fix it so it wont break!Pako wrote:If it's worth doing it's worth overdoing.
name = "Wind Helper",
desc =
Shows wind info and when to build wind.
The next wind vector turning point displays the immediate wind forecast.
Forecast text tells the forecast from integrated winds.
(current economy and wind mean affects what to build but not the forecasts)
The next spring version will break this widget.
your widget is goddly.
Re: REQ: Wind Speed
I'll see how the winds are blowing in few months from now and maybe fix then(I'm not sure how BA will accept so major change and developers aren't very sensitive for fixing things either).Spawn_Retard wrote: please fix it so it wont break!
your widget is goddly.
Immediate wind forecast will be broken anyway because the wind change vector will be curved so the turning point would be too hard to detect.
Re: REQ: Wind Speed
Some graphical effects of wind would be nice. Like particles blowing into wind direction or maybe plasma blown by 0.009%.