Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions SEMANA_03/02_ATIVIDADES/Ativ_Sem03/.import/.gdignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="47313fa4c47a9963fddd764e1ec6e4a8"
dest_md5="26ea799ea0a3da9e753b3ebe822e0570"

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="cf4aec4842e6f28b128d15ef58be76d0"
dest_md5="f713b52cc8973914be7fa878566b7e90"

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="47313fa4c47a9963fddd764e1ec6e4a8"
dest_md5="26ea799ea0a3da9e753b3ebe822e0570"

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="7e41bf3051b18e392a4bb6c0cc45cd7c"
dest_md5="73e4f4d3969b9486e63fd804f5f0f1a9"

Binary file not shown.
45 changes: 45 additions & 0 deletions SEMANA_03/02_ATIVIDADES/Ativ_Sem03/Node2D.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
extends Node2D

#variaveis para atribuir texto
var lista_user #variavel do usuario
var lista #variavel pronta
var resp

#adicionar texto
var texto_user #variavel do usuario
var texto #variavel pronta


func _ready():
pass


# LISTA QUE O USUARIO DIGITA
func _on_lista_user_pressed(): #Quando pressionar o botão
lista_user = str($dado1.text) #Atribuindo texto do dado no quadro branco
resp = str(lista_user.split(' ')) #funcao split() -> separar texto com virgula

$ColorRect/lab3.text = "Sua lista: " + resp #adicionando texto ao quadro de saida



# LISTA COM RESULTADO PRONTO
func _on_lista_pressed():
$ColorRect/lab3.text = "Lista: [12, 11, 10, 9]" #lista pronta



# TEXTO QUE USUARIO DIGITA
func _on_text_user_pressed():
texto_user = $dado2.text #atribuindo texto digitado pelo usuario

$ColorRect/lab3.text = " " + texto_user #atribuindo ao quadro de saida


# TEXTO COM RESULTADO PRONTO
func _on_text_pressed():
texto = $texto.text

$ColorRect/lab3.text = "Esse texto foi criado pela Ana Luisa"


94 changes: 94 additions & 0 deletions SEMANA_03/02_ATIVIDADES/Ativ_Sem03/Node2D.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
[gd_scene load_steps=2 format=2]

[ext_resource path="res://Node2D.gd" type="Script" id=1]

[node name="Node2D" type="Node2D"]
script = ExtResource( 1 )

[node name="texto" type="Button" parent="."]
margin_left = 464.0
margin_top = 448.0
margin_right = 577.0
margin_bottom = 503.0
rect_pivot_offset = Vector2( 57, 15 )
text = "Texto"

[node name="lista" type="Button" parent="."]
margin_left = 656.0
margin_top = 448.0
margin_right = 769.0
margin_bottom = 503.0
rect_pivot_offset = Vector2( 73, 0 )
text = "Lista"

[node name="lista_user" type="Button" parent="."]
margin_left = 64.0
margin_top = 240.0
margin_right = 177.0
margin_bottom = 295.0
rect_pivot_offset = Vector2( 73, 0 )
text = "Lista"

[node name="text_user" type="Button" parent="."]
margin_left = 272.0
margin_top = 240.0
margin_right = 385.0
margin_bottom = 295.0
rect_pivot_offset = Vector2( 73, 0 )
text = "Texto"

[node name="dado1" type="LineEdit" parent="."]
margin_left = 64.0
margin_top = 320.0
margin_right = 192.0
margin_bottom = 448.0
rect_pivot_offset = Vector2( 80, 40 )

[node name="dado2" type="LineEdit" parent="."]
margin_left = 256.0
margin_top = 320.0
margin_right = 384.0
margin_bottom = 448.0
rect_pivot_offset = Vector2( 80, 40 )

[node name="label1" type="Label" parent="."]
margin_left = 72.0
margin_top = 192.0
margin_right = 378.0
margin_bottom = 223.0
rect_pivot_offset = Vector2( 328, 32 )
text = "Para obter uma lista ou texto escreva no quadro
e clique no botão correspondente."
align = 1
valign = 1

[node name="label2" type="Label" parent="."]
margin_left = 448.0
margin_top = 392.0
margin_right = 790.0
margin_bottom = 423.0
rect_pivot_offset = Vector2( 328, 32 )
text = "Para que o programa faça um texto ou lista para você,
apenas aperte o botão correspondente:"
align = 1
valign = 1

[node name="ColorRect" type="ColorRect" parent="."]
margin_left = 448.0
margin_top = 192.0
margin_right = 768.0
margin_bottom = 344.0

[node name="lab3" type="RichTextLabel" parent="ColorRect"]
modulate = Color( 0, 0, 0, 1 )
self_modulate = Color( 0, 0, 0, 1 )
margin_left = 64.0
margin_top = 40.0
margin_right = 256.0
margin_bottom = 110.0
tab_size = 1

[connection signal="pressed" from="texto" to="." method="_on_text_pressed"]
[connection signal="pressed" from="lista" to="." method="_on_lista_pressed"]
[connection signal="pressed" from="lista_user" to="." method="_on_lista_user_pressed"]
[connection signal="pressed" from="text_user" to="." method="_on_text_user_pressed"]
7 changes: 7 additions & 0 deletions SEMANA_03/02_ATIVIDADES/Ativ_Sem03/default_env.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[gd_resource type="Environment" load_steps=2 format=2]

[sub_resource type="ProceduralSky" id=1]

[resource]
background_mode = 2
background_sky = SubResource( 1 )
34 changes: 34 additions & 0 deletions SEMANA_03/02_ATIVIDADES/Ativ_Sem03/export_presets.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[preset.0]

name="HTML5"
platform="HTML5"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../html - godot/index.html"
script_export_mode=1
script_encryption_key=""

[preset.0.options]

custom_template/debug=""
custom_template/release=""
variant/export_type=0
vram_texture_compression/for_desktop=true
vram_texture_compression/for_mobile=false
html/export_icon=true
html/custom_html_shell=""
html/head_include=""
html/canvas_resize_policy=2
html/focus_canvas_on_start=true
html/experimental_virtual_keyboard=false
progressive_web_app/enabled=false
progressive_web_app/offline_page=""
progressive_web_app/display=1
progressive_web_app/orientation=0
progressive_web_app/icon_144x144=""
progressive_web_app/icon_180x180=""
progressive_web_app/icon_512x512=""
progressive_web_app/background_color=Color( 0, 0, 0, 1 )
Binary file added SEMANA_03/02_ATIVIDADES/Ativ_Sem03/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions SEMANA_03/02_ATIVIDADES/Ativ_Sem03/icon.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/index.apple-touch-icon.png-8085a11cc297d91deb55511843765958.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://index.apple-touch-icon.png"
dest_files=[ "res://.import/index.apple-touch-icon.png-8085a11cc297d91deb55511843765958.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Loading