Skip to content

Commit

Permalink
Startup screen improvements + finalized for alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
voylin committed Jan 4, 2024
1 parent f48cdef commit 3dbfb27
Show file tree
Hide file tree
Showing 17 changed files with 894 additions and 480 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "gozen-ffmpeg"]
path = gozen-ffmpeg
url = [email protected]:VoylinsGamedevJourney/gozen-ffmpeg.git
[submodule "GoZen-docs"]
path = gozen-docs
url = [email protected]:VoylinsGamedevJourney/GoZen-docs.git
58 changes: 48 additions & 10 deletions build-gdextension.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,53 @@
#!/bin/bash

rm -r gozen-ffmpeg/bin/*
# Get amount of cores/threads for compiling
read -p "Enter amount of cores/threads for compiling: " num_jobs


# Get build target
echo "Please select the build target for GoZen-ffmpeg:"
echo "1. template_debug"
echo "2. template_release"
read -p "Enter your choice (1-2): " target

case $target in
1)
target=template_debug
;;
2)
target=template_release
;;
*)
echo "Choosing target=template_debug as no (valid) argument was given."
target=template_debug
;;
esac

# First argument: Amount of threads
# Second argument: Target you want to develop for
pushd gozen-ffmpeg
./build.sh 10 target_debug
popd

# Hiding it for now, incase no new builds are possible,
# we don't lose the previous one
#rm -r src/bin/*
# Get the target platform
echo "Please select your target platform:"
echo "1. Linux"
echo "2. Windows"
echo "3. Mac"
read -p "Enter your choice (1-3): " platform

cp -r gozen-ffmpeg/bin/. src/editor/bin
case $platform in
1)
platform=linux
;;
2)
platform=windows
;;
3)
platform=macos
;;
*)
echo "Choosing platform=linuxbsd as no (valid) argument was given."
platform=linuxbsd
;;
esac


pushd gozen-ffmpeg
scons -j $num_jobs destination=../src/editor/bin target=$target platform=$platform
popd
1 change: 0 additions & 1 deletion src/startup/icon.svg

This file was deleted.

37 changes: 0 additions & 37 deletions src/startup/icon.svg.import

This file was deleted.

5 changes: 3 additions & 2 deletions src/startup/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ config_version=5
[application]

config/name="GoZen Startup"
config/description="The startup manager of the video editor GoZen made by Voylin with Godot."
config/description="The startup manager of the video editor GoZen made by Voylin with Godot. For opening video files, please use GoZen Editor executable instead."
config/version="0.3.0-alpha"
config/tags=PackedStringArray("gozen")
run/main_scene="res://ui/startup_window.tscn"
config/use_custom_user_dir=true
config/custom_user_dir_name="GoZen"
config/features=PackedStringArray("4.2", "GL Compatibility")
config/features=PackedStringArray("4.3", "GL Compatibility")
run/low_processor_mode=true
boot_splash/bg_color=Color(0.141176, 0.141176, 0.141176, 1)
boot_splash/show_image=false
Expand Down
51 changes: 31 additions & 20 deletions src/startup/translations/translations.csv
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
KEY,en,ja,fr,nl,zh_TW,pl_pl,de,pt_br
TITLE_NEW_PROJECT,"New project","新しいプロジェクト","Nouveau projet","Nieuw project","新專案","Nowy projekt","Neues Projekt","Novo projeto"
TITLE_RECENT_PROJECTS,"Recent projects","最近のプロジェクト","Projets récents","Recente projecten","","Ostatnie projekty","Zuletzt geöffnete Projekte","Projetos recentes"
BUTTON_NEW_HORIZONTAL_FHD_PROJECT,"New 1080p (landscape)","新1080p (横)","Nouveau 1080p (paysage)","Nieuw 1080p (landschap)","","Nowy 1080p (poziomy)","Neues 1080p (Landschaft)","Novo 1080p (paisagem)"
BUTTON_NEW_VERTICAL_FHD_PROJECT,"New 1080p (portrait)","新1080p (縦)","Nouveau 1080p (portrait)","Nieuw 1080p (portret)","","Nowy 1080p (pionowy)","Neues 1080p (Porträt)","Novo 1080p (retrato)"
BUTTON_NEW_HORIZONTAL_4K_PROJECT,"New 4K (landscape)","新4K (横)","Nouveau 4K (paysage)","Nieuw 4k (landschap)","","Nowy 4k (poziomy)","Neues 4k (Landschaft)","Novo 4K (paisagem)"
BUTTON_NEW_VERTICAL_4K_PROJECT,"New 4K (portrait)","新4K (縦)","Nouveau 4K (portrait)","Nieuw 4k (portret)","","Nowy 4k (pionowy)","Neues 4k (Porträt)","Novo 4K (retrato)"
BUTTON_NEW_CUSTOM_PROJECT,"New custom","新カスタム","Nouveau personnalisé","","","","","Novo personalizado"
BUTTON_OPEN_PROJECT,"Open project","プロジェクトをを開く","Ouvrir un projet","Open project","","Otwórz projekt","Projekt öffnen","Abrir projeto"
BUTTON_SUPPORT_PROJECT,"Support this project","このプロジェクトを支援する","Supporter ce projet","Steun dit project","","Wesprzyj ten projekt","Unterstütze dieses Projekt","Apoie este projeto"
POPUP_CUSTOM_PROJECT_TITLE,"Custom project","カスタムプロジェクト","","","","","",""
POPUP_CUSTOM_PROJECT_NAME,"Project title:","プロジェクトのタイトル:","","","","","",""
POPUP_CUSTOM_PROJECT_SIZE,"Project size:","プロジェクトのサイズ:","","","","","",""
POPUP_CUSTOM_PROJECT_BUTTON_CANCEL,"Cancel","キャンセル","","","","","",""
POPUP_CUSTOM_PROJECT_BUTTON_OK,"OK","了解","","","","","",""
POPUP_CUSTOM_PROJECT_TOOLTIP_X,"Width in pixels for the project.","プロジェクトの幅(ピクセル)","","","","","",""
POPUP_CUSTOM_PROJECT_TOOLTIP_Y,"Height in pixels for the project.","プロジェクトの高さ(ピクセル)","","","","","",""
UNTITLED_PROJECT_TITLE,"Untitled project","新プロジェクト","","","","","",""
EXPLORER_OPEN_PROJECT,"Open project","プロジェクトを開く","","","","","",""
EMPTY,"","","","","","","",""
KEY,en,ja,fr,nl,zh_TW,pl_pl,de,pt_br,uk_UA,ru_RU
TITLE_NEW_PROJECT,"New project title:","新プロジェクトのタイトル:","","Nieuwe project titel:","","","","","",""
TITLE_RECENT_PROJECTS,"Recent projects","最近のプロジェクト","Projets récents","Recente projecten","","Ostatnie projekty","Zuletzt geöffnete Projekte","Projetos recentes","Нещодавні проєкти","Недавние проекты"
TEXT_UNTITLED_PROJECT_TITLE,"Untitled project","新プロジェクト","Projet sans titre","Naamloos project","未命名專案","","","","Проєкт без назви","Проэкт без названия"
EXPLORER_OPEN_PROJECT,"Open project","プロジェクトを開く","Ouvrir un projet","Open project","開啟專案","","","","Відкрити проєкт","Открыть проект"
BUTTON_OPEN_PROJECT,"Open project","プロジェクトをを開く","Ouvrir un projet","Open project","開啟專案","Otwórz projekt","Projekt öffnen","Abrir projeto","Відкрити проєкт","Открыть проект"
BUTTON_SUPPORT_PROJECT,"Support this project","このプロジェクトを支援する","Supporter ce projet","Steun dit project","支持此專案","Wesprzyj ten projekt","Unterstütze dieses Projekt","Apoie este projeto","Підтримати проєкт","Поддержать проект"
BUTTON_SHOW_ALL_PROJECTS,"Show all projects","全部のプロジェクトを見る","","Toon alle projecten","","","","","",""
BUTTON_CREATE_PROJECT,"Create new project","新プロジェクトを作成する","","Maak nieuw project","","","","","",""
BUTTON_RETURN_MAIN,"Go back","戻る","","Terug","","","","","",""
TOOLTIP_EDITOR_BUTTON,"Go to the GoZen Github page","GoZenのGithubページを見る","","Ga naar de GoZen Github pagina","","","","","",""
TOOLTIP_HD,"720p resolution","720p 解像度","","720p resolutie","","","","","",""
TOOLTIP_FHD,"1080p resolution","1080p 解像度","","1080p resolutie","","","","","",""
TOOLTIP_4K,"4K resolution","4K 解像度","","4K resolutie","","","","","",""
TOOLTIP_8K,"8K resolution","8K 解像度","","8K resolutie","","","","","",""
TOOLTIP_HORIZONTAL,"Change to landscape mode","横向きモードに変更","","","","","","","",""
TOOLTIP_VERTICAL,"Change project to portrait mode","ポートレートモードに変更","","","","","","","",""
TOOLTIP_FPS,"Frame-rate","フレームレート","","","","","","","",""
TOOLTIP_FPS_30,"Preset: 30 frames per second","プリセット: 30 フレーム/秒","","","","","","","",""
TOOLTIP_FPS_60,"Preset: 60 frames per second","プリセット: 60 フレーム/秒","","","","","","","",""
TOOLTIP_FPS_120,"Preset: 120 frames per second","プリセット: 120 フレーム/秒","","","","","","","",""
TOOLTIP_RESOLUTION_X,"Width in pixels for the project.","プロジェクトの幅(ピクセル)","Largeur du projet en pixels.","","專案寬度(像素)","","","","Ширина проєкту у пікселях.","Ширина проэкта в пикселях."
TOOLTIP_RESOLUTION_Y,"Height in pixels for the project.","プロジェクトの高さ(ピクセル)","Hauteur du projet en pixels","","專案高度(像素)","","","","Висота проєкту в пікселях.","Высота проэкта в пикселях."
TOOLTIP_EXIT_BUTTON,"Close GoZen","GoZenを閉じる","","Sluit GoZen","","","","","",""
TOOLTIP_NEW_PROJECT_TITLE,"The name of the project you want to create","作成したいプロジェクトの名前","","De naam van het project die je wilt maken","","","","","",""
TOOLTIP_BUTTON_CREATE_PROJECT,"Create and open new project","新しいプロジェクトを作成して開く","","Maak en open een nieuw project","","","","","",""
TOOLTIP_BUTTON_SHOW_ALL_PROJECTS,"Show all projects which were previously opened","以前に開いたすべてのプロジェクトを表示","","Toon alle projecten die reeds geopend zijn","","","","","",""
TOOLTIP_BUTTON_OPEN_PROJECT,"Select a '*.gozen' file to open in the editor","エディタで開く「*.gozen」ファイルを選択します","","Selecteer een '*.gozen' bestand om te openen","","","","","",""
TOOLTIP_BUTTON_SUPPORT_PROJECT,"This button will take you to my ko-fi page where you can make a donation which is very much appreciated","このボタンをクリックすると、私のko-fiページに移動し、寄付をしていただけます。大変感謝しています!","","","","","","","",""
TOOLTIP_BUTTON_RETURN_MAIN,"Return to main menu","メインメニューに戻る","","Terug naar hoofdmenu","","","","","",""
EMPTY,"","","","","","","","","",""
4 changes: 2 additions & 2 deletions src/startup/translations/translations.csv.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ uid="uid://bxgh1h3vna30i"

[deps]

files=["res://translations/translations.en.translation", "res://translations/translations.ja.translation", "res://translations/translations.fr.translation", "res://translations/translations.nl.translation", "res://translations/translations.zh_TW.translation", "res://translations/translations.pl.translation", "res://translations/translations.de.translation", "res://translations/translations.pt.translation"]
files=["res://translations/translations.en.translation", "res://translations/translations.ja.translation", "res://translations/translations.fr.translation", "res://translations/translations.nl.translation", "res://translations/translations.zh_TW.translation", "res://translations/translations.pl.translation", "res://translations/translations.de.translation", "res://translations/translations.pt.translation", "res://translations/translations.uk_UA.translation", "res://translations/translations.ru_RU.translation"]

source_file="res://translations/translations.csv"
dest_files=["res://translations/translations.en.translation", "res://translations/translations.ja.translation", "res://translations/translations.fr.translation", "res://translations/translations.nl.translation", "res://translations/translations.zh_TW.translation", "res://translations/translations.pl.translation", "res://translations/translations.de.translation", "res://translations/translations.pt.translation"]
dest_files=["res://translations/translations.en.translation", "res://translations/translations.ja.translation", "res://translations/translations.fr.translation", "res://translations/translations.nl.translation", "res://translations/translations.zh_TW.translation", "res://translations/translations.pl.translation", "res://translations/translations.de.translation", "res://translations/translations.pt.translation", "res://translations/translations.uk_UA.translation", "res://translations/translations.ru_RU.translation"]

[params]

Expand Down
22 changes: 22 additions & 0 deletions src/startup/ui/scripts/move_window.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
extends TextureRect
## Moving window
##
## The logic which allows the window to be moved when dragging from the
## "WelcomeImage" node.


var move_window := false
var move_start: Vector2i


func _process(_delta: float) -> void:
if move_window:
var mouse_delta = Vector2i(get_viewport().get_mouse_position()) - move_start
get_window().position += mouse_delta


func _on_welcome_image_gui_input(event: InputEvent) -> void:
if event is InputEventMouseButton and event.button_index == 1:
if !move_window:
move_start = get_viewport().get_mouse_position()
move_window = event.is_pressed()
Loading

0 comments on commit 3dbfb27

Please sign in to comment.