Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
MiniWeather V0.1.6 

*Update : Small updates. Added a numerical indicator to the Weather Alerts page, and some small formatting changes.
  • Loading branch information
ModeratePrawn authored Jun 22, 2022
1 parent 6d04839 commit d7a50ce
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
12 changes: 11 additions & 1 deletion Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ var AlertCount
func _ready():
print("Program Starting")
$GUI/AlertDisplay.visible = false
$GUI/Forecasts.visible = true
$GUI/Forecasts/Window/NowCast/Alert.visible = false
findLocation()

func findLocation():
Expand Down Expand Up @@ -117,6 +119,9 @@ func _on_AlertRequest_request_completed(result, response_code, headers, body):
AlertHandler()

func AlertHandler():
var AlertNumberUpdate
var WA = " Weather Alerts"
var WAS = " Weather Alert"
print("Alerts:")
if Alerts == []:
print("No Alerts")
Expand All @@ -125,9 +130,14 @@ func AlertHandler():
$GUI/Forecasts/Window/NowCast/Alert.visible = true
print("ALERT!")
AlertCount = Alerts.size()
#AlertCount = 3 #Testing.
#AlertCount = 1 #Testing.
print("Alert Count:")
print(AlertCount)
AlertNumberUpdate = get_tree().get_root().get_node("Main/GUI/AlertDisplay/Body/Header")
if AlertCount == 1:
AlertNumberUpdate.text = str(AlertCount,WAS)
else:
AlertNumberUpdate.text = str(AlertCount,WA)
alertProcessing()

func alertProcessing():
Expand Down
11 changes: 6 additions & 5 deletions Main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ autowrap = true
visible = false
margin_top = 128.0
margin_right = 200.0
margin_bottom = 148.0
margin_bottom = 178.0
rect_min_size = Vector2( 0, 50 )
text = "Weather Alert"

[node name="HSeparator2" type="HSeparator" parent="GUI/Forecasts/Window"]
Expand Down Expand Up @@ -1208,7 +1209,7 @@ margin_bottom = 36.0
[node name="AlertScroll" type="ScrollContainer" parent="GUI/AlertDisplay/Body"]
margin_top = 40.0
margin_right = 722.0
margin_bottom = 960.0
margin_bottom = 966.0
rect_min_size = Vector2( 0, 920 )
size_flags_vertical = 3
scroll_horizontal_enabled = false
Expand All @@ -1221,10 +1222,10 @@ size_flags_horizontal = 3
size_flags_vertical = 3

[node name="ForecastReturn" type="Button" parent="GUI/AlertDisplay/Body"]
margin_top = 964.0
margin_top = 970.0
margin_right = 722.0
margin_bottom = 998.0
rect_min_size = Vector2( 0, 20 )
margin_bottom = 1020.0
rect_min_size = Vector2( 0, 50 )
custom_fonts/font = ExtResource( 2 )
text = "Close"

Expand Down
2 changes: 1 addition & 1 deletion export_presets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../../DevTools/Exports/Android/MiniWeather/MiniWeatherV0.1.5.apk"
export_path="../../DevTools/Exports/Android/MiniWeather/MiniWeatherV0.1.6.apk"
script_export_mode=1
script_encryption_key=""

Expand Down

0 comments on commit d7a50ce

Please sign in to comment.