SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-02-25 00:58:39

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 2,738

interactive weather

what you need

v9000 archive, unzipped and distributed according to the readme
http://crunchbanglinux.org/forums/topic … a-scripts/

xdotool, the repos can have an old copy, my version is

xdotool version 2.20110530.1

here are the deb files i used to get xdotool up and running
http://crunchbanglinux.org/forums/post/183389/#p183389

These xdo debs are needed for amd64 architecture.
xdotool_2.20110530.1-1_x86_64.deb
libxdo2_2.20110530.1-1_x86_64.deb

you can get those here
http://code.google.com/p/semicomplete/d … nloadCount

also xwininfo is not one of #! default packages
so you will need to install that too

so that xdotool and xwininfo can get the right information
you need to add this line to your conkyrc

own_window_title conky_weather

the weather.interactive.lua template

works like this:

http://youtu.be/bnLjaVPU_Ds

this is an interactive template script that works alongside v9000.lua

no changes to v9000.lua or .v9000_config.lua are required (apart from initial setup of the config of course)

here is the template
http://dl.dropbox.com/u/19008369/weathe … lua.tar.gz

get the v9000 archive from the weather in conky thread and follow the readme to get it working

put this template into the v9000 folder then edit conky_weather to point to "weather_interactive.lua" instead of "weather_testing.lua"

you need xdotool installed and xwininfo (which you most likely have)

everything open on my eeepc, i get cpu at 4% when all closed down 1%
the less you see the lower the % smile

Last edited by mrpeachy (2012-02-25 22:40:35)

Offline

Be excellent to each other!

#2 2012-02-25 01:20:33

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

Here is my terminal with mouse-over working

Absolute upper-left X:  10  Absolute upper-left Y:  10
x:0 y:0 
x:0 y:0 
x:0 y:0 
x:0 y:0 
x:0 y:0 
x:0 y:0 
x:0 y:0 
findclient: 10560769
findclient: 10560768

Last edited by falldown (2012-02-25 01:55:47)

Offline

#3 2012-02-25 01:51:31

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 2,738

Re: interactive weather

once working you can delete the print commands you put into the template

try these files
http://dl.dropbox.com/u/19008369/v9000% … 000.tar.gz

these are the ones i am running successfully
small chance it will fix it, but you never know...

Last edited by mrpeachy (2012-02-25 02:03:07)

Offline

#4 2012-02-25 02:17:57

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

For some reason.. A fresh reboot (which I should have done earlier after I installed xdotool) Your masterpiece popped up in all its glory!!

a3ab95176628042.jpg

Offline

#5 2012-02-25 02:28:52

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 2,738

Offline

#6 2012-02-25 02:42:58

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

I do believe that xdotool version 2.20110530.1 is a must. The repo version is outdated.

Offline

#7 2012-02-25 16:25:57

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

My better half said that your interactive weather is "very sexy".
I'm jealous cause when I show her my conky configurations I get a kiss on the cheek and a "you are so nerdy baby"  big_smile

Offline

#8 2012-02-25 18:15:56

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 2,738

Re: interactive weather

falldown wrote:

My better half said that your interactive weather is "very sexy".
I'm jealous cause when I show her my conky configurations I get a kiss on the cheek and a "you are so nerdy baby"  big_smile

lol

Offline

#9 2012-02-25 21:09:31

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: interactive weather

HA!  And falldown thinks I'm lua literate lol lol lol

  17:56:07 ~
         $ conky -c ~/Conky/S11_v9_inter.conky &
[1] 19658

  17:56:14 ~
         $ Conky: desktop window (15d) is root window
Conky: window type - normal
Conky: drawing to created window (0x3200001)
Conky: drawing to double buffer
gathering data with curl
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 68088  100 68088    0     0  49327      0  0:00:01  0:00:01 --:--:-- 56882
not checking for alerts
processing complete
1
xwininfo: error: No window with name "conky_weather" exists!
Conky: llua_do_call: function conky_weather execution failed: /home/sector11/v9000/weather_interactive.lua:259: attempt to perform arithmetic on global 'abstlx' (a nil value)
Conky: llua_do_call: function conky_weather execution failed: /home/sector11/v9000/weather_interactive.lua:259: attempt to perform arithmetic on global 'abstlx' (a nil value)
Conky: llua_do_call: function conky_weather execution failed: /home/sector11/v9000/weather_interactive.lua:259: attempt to perform arithmetic on global 'abstlx' (a nil value)
Conky: llua_do_call: function conky_weather execution failed: /home/sector11/v9000/weather_interactive.lua:259: attempt to perform arithmetic on global 'abstlx' (a nil value)
Conky: llua_do_call: function conky_weather execution failed: /home/sector11/v9000/weather_interactive.lua:259: attempt to perform arithmetic on global 'abstlx' (a nil value)
Conky: llua_do_call: function conky_weather execution failed: /home/sector11/v9000/weather_interactive.lua:259: attempt to perform arithmetic on global 'abstlx' (a nil value)
Conky: llua_do_call: function conky_weather execution failed: /home/sector11/v9000/weather_interactive.lua:259: attempt to perform arithmetic on global 'abstlx' (a nil value)
Conky: llua_do_call: function conky_weather execution failed: /home/sector11/v9000/weather_interactive.lua:259: attempt to perform arithmetic on global 'abstlx' (a nil value)

~/tmp is empty!

I installed:
xdotool_2.20110530.1-3_amd64.deb & libxdo2_2.20110530.1-3_amd64.deb

The conky!!!!

## To use #! in a conky use: ${exec echo '#!'}
## killall conky && conky -c ~/Conky/S11_v9_inter.conky &
##
## The latest script is a lua only weather script. aka: v9000
## http://crunchbanglinux.org/forums/topic/16100/weather-in-conky/
##
## the file:
## http://dl.dropbox.com/u/19008369/weatheragain9000.lua.tar.gz
##
## mrppeachys LUA Tutorial
## http://crunchbanglinux.org/forums/topic/17246/how-to-using-lua-scripts-in-conky/
##
##
###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

own_window_type normal #override
own_window_transparent yes #no
#own_window_hints below,skip_taskbar,skip_pager
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour black
own_window_class Interactive v9000
own_window_title Interactive v9000

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### 'own_window_type override'
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 150

minimum_size 900 900  ##820 260   ## width, height
maximum_width 900     ##820       ## width, usually a good idea to equal minimum width

gap_x 10 #15        ### left &right
gap_y 10        ### up & down

alignment top_left
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Anonymous Pro:size=9

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
# Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
default_shade_color grey
default_outline_color black

default_color DCDCDC #Gainsboro
color0 DAA520 #Goldenrod  FFFFF0 #Ivory
color1 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 00FFFF #Cyan 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################

# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

#      Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or it blinks.
##
## lua_load ~/wea_conky/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
##
## OR Both above TEXT (No composite manager required - no blinking!)
##
# lua_load ~/wea_conky/draw_bg.lua
# lua_draw_hook_pre draw_bg 15 0 0 0 0 0x000000 0.5
## TEXT
##
#######################################################  End LUA Settings  ###

# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1 # 1800

lua_load ~/v9000/v9000.lua
lua_draw_hook_post weather
#lua_load ~/Conky/templates/t9000-h-template.lua
lua_load ~/v9000/weather_interactive.lua

TEXT
{one blank line here}

Last edited by Sector11 (2012-02-25 21:12:55)

Offline

#10 2012-02-25 21:16:34

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

Could this be the problem?
Try this

own_window_title conky_weather

instead of

own_window_title Interactive v9000

OR

In weather_interactive.lua line 238 has

local f = io.popen("xwininfo -name 'conky_weather' | grep 'Absolute'")

you could change this to reflect your conky

local f = io.popen("xwininfo -name 'interactive v9000' | grep 'Absolute'")

Last edited by falldown (2012-02-25 21:47:06)

Offline

#11 2012-02-25 21:55:04

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 2,738

Re: interactive weather

@ sector11, i know youve had problems with putting things into tmp

in the template towards the bottom
lines 259 269 and 273

youll find where the script is writing and reading from /tmp/xdo

you can create a folder somewhere else and point those lines to it instead of tmp

Offline

#12 2012-02-25 21:59:43

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

mrpeachy wrote:

@ sector11, i know youve had problems with putting things into tmp

in the template towards the bottom
lines 259 269 and 273

youll find where the script is writing and reading from /tmp/xdo

you can create a folder somewhere else and point those lines to it instead of tmp

I moved mine back to /tmp/xdo earlier today MrPeachy.. Just to narrow down the cause of the error message. I think it was the wrong version of xdotool.

It's running perfect and coping to my xdo.

Last edited by falldown (2012-02-25 22:11:30)

Offline

#13 2012-02-25 22:12:41

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: interactive weather

falldown wrote:

Could this be the problem?
Try this

own_window_title conky_weather

instead of

own_window_title Interactive v9000

OR

In weather_interactive.lua line 238 has

local f = io.popen("xwininfo -name 'conky_weather' | grep 'Absolute'")

you could change this to reflect your conky

local f = io.popen("xwininfo -name 'interactive v9000' | grep 'Absolute'")

Not to doubt you but where is this documented?
All I saw was:

this is an interactive template script that works alongside v9000.lua

no changes to v9000.lua or .v9000_config.lua are required (apart from initial setup of the config of course)

here is the template
http://dl.dropbox.com/u/19008369/weathe … lua.tar.gz

get the v9000 archive from the weather in conky thread and follow the readme to get it working

put this template into the v9000 folder then edit conky_weather to point to "weather_interactive.lua" instead of "weather_testing.lua"

{grumble grumble} I'll make changes...

Offline

#14 2012-02-25 22:16:17

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: interactive weather

falldown wrote:
mrpeachy wrote:

@ sector11, i know youve had problems with putting things into tmp

in the template towards the bottom
lines 259 269 and 273

youll find where the script is writing and reading from /tmp/xdo

you can create a folder somewhere else and point those lines to it instead of tmp

I moved mine back to /tmp/xdo earlier today MrPeachy.. Just to narrow down the cause of the error message. I think it was the wrong version of xdotool.

It's running perfect and coping to my xdo.

Yea, I'll try the other fix by falldown with the own_window_title first  big_smile

Offline

#15 2012-02-25 22:19:53

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

lol

Sector11 wrote:
xwininfo: error: No window with name "conky_weather" exists!

I think that is the cause of the hiccup.. (probably wrong) lol

I do think that MrPeachy posted

Add this line to your conkyrc.

own_window_title conky_weather

Somewhere in the moster conky thread smile

Offline

#16 2012-02-25 22:41:16

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: interactive weather

falldown wrote:

lol

Sector11 wrote:
xwininfo: error: No window with name "conky_weather" exists!

I think that is the cause of the hiccup.. (probably wrong) lol

I do think that MrPeachy posted

Add this line to your conkyrc.

own_window_title conky_weather

Somewhere in the moster conky thread smile

No sir, falldown, you're a stand-up guy and dead right.
Somewhere in the monster thread ... only 641 posts, how could I possible have missed it.  lol

a51a28176768453.jpg

Falldown, tell your wife, my wife says the same: SEXY!

Again - mrpeachy: you make good LUA's - I'm a bad user.  big_smile

Offline

#17 2012-02-25 22:41:28

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 2,738

Re: interactive weather

i've updated the first post here with the own_window_title instructions

Offline

#18 2012-02-25 23:03:21

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

Sector11 wrote:

No sir, falldown, you're a stand-up guy and dead right.
Somewhere in the monster thread ... only 641 posts, how could I possible have missed it.  lol

Falldown, tell your wife, my wife says the same: SEXY!

Again - mrpeachy: you make good LUA's - I'm a bad user.  big_smile

Thank you, but I was just passing on the info that MrPeachy gave me yesterday as we were getting it up and running on my machine.
It is a beautiful piece of script!! And the uses for the interactive.lua is limitless!

Offline

#19 2012-02-25 23:26:02

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 2,738

Re: interactive weather

Sector11 wrote:

Again - mrpeachy: you make good LUA's - I'm a bad user.  big_smile

your just keeping me in line sector11 big_smile

im very bad at completing tasks, im usually moving onto the next thing before finishing the last!

Offline

#20 2012-02-26 00:05:01

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: interactive weather

^^^^ @ falldown and mrprachy....

With falldow's ingenuity, mrpeachy's genius and my ability to really foul things up we make a good team.

Been like that since I was a kid - rip things apart to see how they work, always had a few pieces left over when putting them back.  Sometimes they would even work missing parts.

Offline

#21 2012-02-26 23:10:48

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

Did some tweaking today and wanted to get some feedback. Here are the images... just too many and didn't want to clutter up this thread. I am still playing around with the fonts and color. 

MrPeachy.. How would I get the "#" DAY button to only display after the previous has been clicked?

Offline

#22 2012-02-26 23:28:59

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 2,738

Re: interactive weather

falldown wrote:

Did some tweaking today and wanted to get some feedback. Here are the images... just too many and didn't want to clutter up this thread. I am still playing around with the fonts and color. 

MrPeachy.. How would I get the "#" DAY button to only display after the previous has been clicked?

you would have to put the button inside the control of the previous

2daybutton

if 2daybutton==on then
-show 2 day forecast
-display 4daybutton
     if 4daybutton==on then
     -show next 2 days
     -display 6daybutton
             if 6daybutton==on then
             -show next 2 days
etc

another way to do it, which i have found making multiple buttons easier to manage

function main()
button1
if button1==on then
button1function()
end
end--of main function

button1function()
all the stuff that button 1 controls
end--of button1function

Offline

#23 2012-02-27 01:35:02

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: interactive weather

falldown wrote:

Did some tweaking today and wanted to get some feedback. Here are the images... just too many and didn't want to clutter up this thread. I am still playing around with the fonts and color. 

MrPeachy.. How would I get the "#" DAY button to only display after the previous has been clicked?

But looks gooooooood!  I've been busy with other things today {sigh}

Last edited by Sector11 (2012-02-27 02:42:14)

Offline

#24 2012-02-27 01:54:11

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

Thank you! I wanted to play around with it yesterday, but had too much other stuff to do. I'm trying to add a function that will only display another option once the previous button has been clicked.

I don't want to bother MrPeachy too much on the weekend!! big_smile That and he gave me all the info I need.. I'm just trying to get the placement right.. almost there!

Last edited by falldown (2012-02-27 01:54:34)

Offline

Be excellent to each other!

#25 2012-02-27 20:41:33

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,471

Re: interactive weather

Ok MrPeachy.. I'm stuck.
2 day button displays after clicking the weather button.
step one complete.
4 day button displays after clicking the 2 day button + the 2 day forecast.
step two complete.
6 day button dispalys after clicking the 4 day button + the 4 day forecast, but the 4 day button disappears.
same thing with the 6 day and 8 day button after clicking they disappear.

this is what I have written in so far.

end--next3button

--fc2button button
local fc2buttonx=12
local fc2buttony=fcb
local fc2buttonw=70
local fc2buttonh=16
local fc2buttononc={1,0,0,1}
local fc2buttonoffc={1,1,1,1}
if localx>=fc2buttonx and localx<=fc2buttonx+fc2buttonw and localy>=fc2buttony and localy<=fc2buttony+fc2buttonh and fc2button~=1 then fc8button=0;fc6button=0;fc4button=0;fc2button=1 elseif localx>=fc2buttonx and localx<=fc2buttonx+fc2buttonw and localy>=fc2buttony and localy<=fc2buttony+fc2buttonh and fc2button==1 then fc2button=0 end
if fc2button==1 then cairo_set_source_rgba (cr,fc2buttononc[1],fc2buttononc[2],fc2buttononc[3],fc2buttononc[4]) else cairo_set_source_rgba (cr,fc2buttonoffc[1],fc2buttonoffc[2],fc2buttonoffc[3],fc2buttonoffc[4]) end;cairo_set_line_width (cr,1);cairo_rectangle (cr,fc2buttonx,fc2buttony,fc2buttonw,fc2buttonh);cairo_stroke (cr)
out ({f="N-Gage",fs=14,x=fc2buttonx+1,y=fc2buttony+fc2buttonh-2,txt="2 DAY"})
fc4=305

--fc4button button
if fc2button==1 then
local fc4buttonx=12
local fc4buttony=fc4
local fc4buttonw=70
local fc4buttonh=16
local fc4buttononc={1,0,0,1}
local fc4buttonoffc={1,1,1,1}
if localx>=fc4buttonx and localx<=fc4buttonx+fc4buttonw and localy>=fc4buttony and localy<=fc4buttony+fc4buttonh and fc4button~=1 then fc8button=0;fc6button=0;fc4button=1;fc2button=0 elseif localx>=fc4buttonx and localx<=fc4buttonx+fc4buttonw and localy>=fc4buttony and localy<=fc4buttony+fc4buttonh and fc4button==1 then fc4button=0 end
if fc4button==1 then cairo_set_source_rgba (cr,fc4buttononc[1],fc4buttononc[2],fc4buttononc[3],fc4buttononc[4]) else cairo_set_source_rgba (cr,fc4buttonoffc[1],fc4buttonoffc[2],fc4buttonoffc[3],fc4buttonoffc[4]) end;cairo_set_line_width (cr,1);cairo_rectangle (cr,fc4buttonx,fc4buttony,fc4buttonw,fc4buttonh);cairo_stroke (cr)
out ({f="N-Gage",fs=14,x=fc4buttonx+1,y=fc4buttony+fc4buttonh-2,txt="4 DAY"})font="N-Gage"
else
fc6=410

--fc6button button
if fc4button==1 then
local fc6buttonx=12
local fc6buttony=fc6
local fc6buttonw=70
local fc6buttonh=16
local fc6buttononc={1,0,0,1}
local fc6buttonoffc={1,1,1,1}
if localx>=fc6buttonx and localx<=fc6buttonx+fc6buttonw and localy>=fc6buttony and localy<=fc6buttony+fc6buttonh and fc6button~=1 then fc8button=0;fc6button=1;fc4button=0;fc2button=0 elseif localx>=fc6buttonx and localx<=fc6buttonx+fc6buttonw and localy>=fc6buttony and localy<=fc6buttony+fc6buttonh and fc6button==1 then fc6button=0 end
if fc6button==1 then cairo_set_source_rgba (cr,fc6buttononc[1],fc6buttononc[2],fc6buttononc[3],fc6buttononc[4]) else cairo_set_source_rgba (cr,fc6buttonoffc[1],fc6buttonoffc[2],fc6buttonoffc[3],fc6buttonoffc[4]) end;cairo_set_line_width (cr,1);cairo_rectangle (cr,fc6buttonx,fc6buttony,fc6buttonw,fc6buttonh);cairo_stroke (cr)
out ({f="N-Gage",fs=14,x=fc6buttonx+1,y=fc6buttony+fc6buttonh-2,txt="6 DAY"})font="N-Gage"
else
fc8=515

--fc8button button
if fc6button==1 then
local fc8buttonx=12
local fc8buttony=fc8
local fc8buttonw=70
local fc8buttonh=16
local fc8buttononc={1,0,0,1}
local fc8buttonoffc={1,1,1,1}
if localx>=fc8buttonx and localx<=fc8buttonx+fc8buttonw and localy>=fc8buttony and localy<=fc8buttony+fc8buttonh and fc8button~=1 then fc8button=1;fc6button=0;fc4button=0;fc2button=0 elseif localx>=fc8buttonx and localx<=fc8buttonx+fc8buttonw and localy>=fc8buttony and localy<=fc8buttony+fc8buttonh and fc8button==1 then fc8button=0 end
if fc8button==1 then cairo_set_source_rgba (cr,fc8buttononc[1],fc8buttononc[2],fc8buttononc[3],fc8buttononc[4]) else cairo_set_source_rgba (cr,fc8buttonoffc[1],fc8buttonoffc[2],fc8buttonoffc[3],fc8buttonoffc[4]) end;cairo_set_line_width (cr,1);cairo_rectangle (cr,fc8buttonx,fc8buttony,fc8buttonw,fc8buttonh);cairo_stroke (cr)
out ({f="N-Gage",fs=14,x=fc8buttonx+1,y=fc8buttony+fc8buttonh-2,txt="8 DAY"})font="N-Gage"
end--fc4button function
end--fc6button function
end--fc8button function

EDIT: just posted it all so that it makes more sense to you. big_smile

I think its the end functions, but if I remove them then I get a "?" (nil value) error.
Maybe I am placing them in the wrong area.

Last edited by falldown (2012-02-27 21:03:55)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo