From 8bedf8a366cb6c1179bc89678c863517b9356d48 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Sat, 21 Jun 2025 16:51:22 -0300 Subject: refa Remove View2D View2D is almost useless and add too much complexity for the engine, so I am removing it. --- test/src/mode/title.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/src/mode/title.rb') diff --git a/test/src/mode/title.rb b/test/src/mode/title.rb index 6347b70..2e5a35b 100644 --- a/test/src/mode/title.rb +++ b/test/src/mode/title.rb @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Frederico de Oliveira Linhares +# Copyright 2022-2025 Frederico de Oliveira Linhares # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,12 +15,11 @@ module Mode class Title def initialize() - @view = CandyGear::View2D.new( + @view = CandyGear::View.new( CandyGear::Vector4D.new(0, 0, 1280, 720), 640, 360); - CandyGear.views = [@view]; + CandyGear.change_views([@view], 640, 360); @menu = CandyGear::Menu.new( - @view, $global_data[:menu_view], 10, 10, [ {text: "Demo", action: -> {change_mode(:demo);}}, -- cgit v1.2.3