implemented help illustrations
This commit is contained in:
1 parent
3753749f2e
commit
3645c06305
2 files changed
+68
-15
No files matched your search
+13
-8
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <array>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
@@ -45,6 +46,10 @@ class HelpDlg;
|
||||
}
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Dpi {
|
||||
class Bitmap;
|
||||
}
|
||||
|
||||
namespace Cevo {
|
||||
namespace Help {
|
||||
|
||||
@@ -161,14 +166,11 @@ private:
|
||||
void search(const QString &searchString);
|
||||
void line(Dpi::Canvas &canvas, int i, bool lit);
|
||||
void paintTerrIcon(int x, int y, int xSrc, int ySrc);
|
||||
// Placeholder for the original's pixel-level water-reflection effect
|
||||
// on wonder/illustration icons - purely cosmetic, not yet ported.
|
||||
void waterSign(int x0, int y0, int iix)
|
||||
{
|
||||
Q_UNUSED(x0);
|
||||
Q_UNUSED(y0);
|
||||
Q_UNUSED(iix);
|
||||
}
|
||||
// Help.pas's WaterSign(): draws a big improvement/wonder illustration.
|
||||
// Simplified from the original's per-pixel sky-detecting watermark blend
|
||||
// (2x upscaled, faded into the paper background) to a plain icon blit -
|
||||
// still shows the real illustration, just without the blend effect.
|
||||
void waterSign(int x0, int y0, int iix);
|
||||
void backBtnClicked();
|
||||
void topBtnClicked();
|
||||
void searchBtnClicked();
|
||||
@@ -182,6 +184,9 @@ private:
|
||||
HyperText mainText;
|
||||
HyperText searchResult;
|
||||
StringTable helpText;
|
||||
// Help.pas's ExtPic: the single external illustration bitmap (Help/*.png)
|
||||
// referenced by the currently displayed page's "@filename\" markup.
|
||||
std::unique_ptr<Dpi::Bitmap> extPic;
|
||||
std::vector<HistItem> histItems;
|
||||
PVScrollBar *scrollBar;
|
||||
std::array<int, 183> x0{}; // x0[-2..180], offset by +2
|
||||
|
||||
Reference in new issue
Block a user