Pārlūkot izejas kodu

Update für neues Framework

Kolja Strohm 5 gadi atpakaļ
vecāks
revīzija
bca02568fd
6 mainītis faili ar 11 papildinājumiem un 14 dzēšanām
  1. 1 1
      patcher/News.cpp
  2. 0 1
      patcher/News.h
  3. 0 1
      patcher/Patcher.cpp
  4. 0 1
      patcher/Patcher.h
  5. 1 0
      patcher/patcher.vcxproj
  6. 9 10
      patcher/start.cpp

+ 1 - 1
patcher/News.cpp

@@ -17,9 +17,9 @@ void KSGSR
 // Inhalt der News Klasse aus News.h
 // Konstruktor
 News::News( Bildschirm *zB, Schrift *zS, KSGClient::NewsServerClient *client )
+    : Thread()
 {
     this->client = client;
-	ref = 1;
 	// Ladeanimation laden
 	Animation2DData *aData = new Animation2DData();
 	LTDBDatei *aDatei = new LTDBDatei();

+ 0 - 1
patcher/News.h

@@ -22,7 +22,6 @@ private:
 	TextFeld *fehler;
 	Schrift *schrift;
     KSGClient::NewsServerClient *client;
-	int ref;
 
 public:
 	// Konstruktor

+ 0 - 1
patcher/Patcher.cpp

@@ -47,7 +47,6 @@ Patcher::Patcher( FBalken *fortschritt, TextFeld *status, Knopf *play, bool *clo
 	this->play = play;
 	this->close = close;
 	ret = 0;
-	ref = 1;
 }
 
 // Destruktor

+ 0 - 1
patcher/Patcher.h

@@ -20,7 +20,6 @@ private:
 	Knopf *play;
 	bool *close;
 	int ret;
-	int ref;
 
 public:
 	// Konstruktor

+ 1 - 0
patcher/patcher.vcxproj

@@ -22,6 +22,7 @@
     <ProjectGuid>{CBA67731-4D13-459A-BA44-543A7AFC6E04}</ProjectGuid>
     <Keyword>Win32Proj</Keyword>
     <RootNamespace>patcher</RootNamespace>
+    <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
   </PropertyGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">

+ 9 - 10
patcher/start.cpp

@@ -24,7 +24,6 @@
 #include <Scroll.h>
 #include <AuswahlBox.h>
 #include <KSGTDatei.h>
-#define Global
 #include <Globals.h>
 #include "Patcher.h"
 #include "News.h"
@@ -88,10 +87,10 @@ bool minimierenME( void *p, void *obj, MausEreignis me )
 bool _playME( void *p, void *obj, MausEreignis me )
 {
 	if( me.id == ME_Betritt )
-		MausZeiger.ladeMaus( MausId::hand );
+		getMaus().ladeMaus( MausId::hand );
 	if( me.id == ME_Leaves )
-		MausZeiger.ladeMaus( MausId::normal );
-	MausZeiger.update();
+        getMaus().ladeMaus( MausId::normal );
+    getMaus().update();
 	if( me.id == ME_RLinks )
 		PostQuitMessage( 0 );
 	return 1;
@@ -635,7 +634,7 @@ int KSGStart Framework::Start( Startparam p )
 
 	_fortschritt = new FBalken();
 	_fortschritt->setStyle( FBalken::Style::Sichtbar | FBalken::Style::Hintergrund | FBalken::Style::HBild | FBalken::Style::FBild | FBalken::Style::Rahmen | FBalken::Style::Prozent | FBalken::Style::L_R );
-	_fortschritt->setLinienRahmenFarbe( 0xFFFFFFFF );
+	_fortschritt->setRahmenFarbe( 0xFFFFFFFF );
 	_fortschritt->setHintergrundBild( systemFortschrittL->getThis() );
 	_fortschritt->setFBgBild( systemFortschrittV->getThis() );
 	_fortschritt->setSchriftZ( sNormal->getThis() );
@@ -696,8 +695,8 @@ int KSGStart Framework::Start( Startparam p )
                      ObjTabelle::Style::Raster | ObjTabelle::Style::VScroll );
 	_o_rt->setPosition( 2, 24 );
 	_o_rt->setSize( 276, 150 );
-	_o_rt->setLinienRahmenBreite( 1 );
-	_o_rt->setLinienRahmenFarbe( 0xFFFFFFFF );
+	_o_rt->setRahmenBreite( 1 );
+	_o_rt->setRahmenFarbe( 0xFFFFFFFF );
 	_o_rt->setRasterBreite( 1 );
 	_o_rt->setRasterFarbe( 0xFFFFFFFF );
 	_o_rt->setVertikalKlickScroll( 10 );
@@ -747,7 +746,7 @@ int KSGStart Framework::Start( Startparam p )
 	_o_ülps->setStyle( TextFeld::Style::Sichtbar | TextFeld::Style::Erlaubt | TextFeld::Style::Rahmen | TextFeld::Style::Buffered | TextFeld::Style::VCenter );
 	_o_ülps->setPosition( 2, 222 );
 	_o_ülps->setSize( 100, 20 );
-	_o_ülps->setLinienRahmenFarbe( 0xFF00FF00 );
+	_o_ülps->setRahmenFarbe( 0xFF00FF00 );
 	_o_ülps->setSchriftZ( sNormal->getThis() );
 	_o_ülps->setText( "" );
 	_o_ülps->setSchriftFarbe( 0xFFFFFFFF );
@@ -763,7 +762,7 @@ int KSGStart Framework::Start( Startparam p )
 	_o_üle->setPosition( 104, 222 );
 	_o_üle->setSize( 55, 20 );
 	_o_üle->setSchriftZ( sNormal->getThis() );
-	_o_üle->setLinienRahmenFarbe( 0xFFFFFFFF );
+	_o_üle->setRahmenFarbe( 0xFFFFFFFF );
 	_o_üle->setHintergrundFarbe( 0xFF000000 );
 	_o_üle->setAuswAlphaFeldFarbe( 0x5500FF00 );
 	_o_üle->setAuswAlphaFeldStrength( -5 );
@@ -789,7 +788,7 @@ int KSGStart Framework::Start( Startparam p )
 	DWORD threadId;
 	HANDLE handle = CreateThread( NULL, 0, runThread, screen, 0, &threadId );
 
-	_patcher = new Patcher( _fortschritt->getThis(), _aktion->getThis(), _play->getThis(), &_exitB, mainClient->createPatchServerClient() );
+	_patcher = new Patcher( (FBalken*)_fortschritt->getThis(), (TextFeld*)_aktion->getThis(), (Knopf*)_play->getThis(), &_exitB, mainClient->createPatchServerClient() );
 	_patcher->startPatch();
 
 	StartNachrichtenSchleife();